So im trying to solve a little problem, it looks like this:
so when i call my function with parameter as value 10, my program returns 3628800,
so my code is right but there is another problem, when i call my function with parameter as value 100 which in this case (100 is needed), long long data type wont capture whole number in it, since the return-number is too big for long long,
What can i use to solve this problem? is there anything bigger than long long?
i already tried
Sorry if its messed up a little :) and tnx in advance...
Code
"n! means n × (n − 1) × ... × 3 × 2 × 1
For example, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800,
and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.
Find the sum of the digits in the number 100!"so when i call my function with parameter as value 10, my program returns 3628800,
so my code is right but there is another problem, when i call my function with parameter as value 100 which in this case (100 is needed), long long data type wont capture whole number in it, since the return-number is too big for long long,
What can i use to solve this problem? is there anything bigger than long long?
i already tried
Code
unsigned __int64 && unsigned long longSorry if its messed up a little :) and tnx in advance...


