+ 1
What's a program to calculate and store factorial of big numbers?
we all(most atleast) know that e.g factorial of 100 cannot be stored in even a "long" type, how can i calculate and store that value though, is there a way?
4 Answers
+ 1
Denise RoĆberg here is my code, i actually created this before i post this question
https://code.sololearn.com/ceONF4WF9i62/?ref=app
+ 1
Denise RoĆberg thank you for liking my code š
+ 1
Mind To Machine š»š Works fine :)
0
You can use BigInteger: https://www.geeksforgeeks.org/biginteger-class-in-java/amp/
BigInteger and BigDecimal: https://www.baeldung.com/java-bigdecimal-biginteger