0

How to calculate factorial of large nos??

is there any method other than the usual one...

24th Jul 2017, 6:45 AM
Aman srivastava
Aman srivastava - avatar
1 Réponse
+ 1
i m assuming that u have made a normal factorial and then asking this the answer is this that normally factorial of big numbers are also quite big. now u might be storing in them in normal int which is a 32 bit data type. 32 bit is insufficient to store that big number and is giving wrong answer due to that. u can use big data types long in java or long long in c++.
24th Jul 2017, 9:30 AM
shobhit
shobhit - avatar