+ 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 Respostas
+ 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