How can we calculate factorial of 100 in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can we calculate factorial of 100 in java?

do not say traditional method, catch is how to store the ans as no variable has that much limit to store the factorial of 100...

29th Jul 2017, 5:04 AM
Sambhav Goel
2 Answers
+ 3
There's a class named BigInteger which can hold extremely high values, have a look: https://code.sololearn.com/cjWatBbnrY97/?ref=app
29th Jul 2017, 6:17 AM
Jonas Schröter
Jonas Schröter - avatar
+ 1
This guy made a Factorial to 100 in python, you can use the same principle in java https://code.sololearn.com/cC8JpWsSErpY/?ref=app
29th Jul 2017, 5:33 AM
Slak
Slak - avatar