https://ide.codingblocks.com/s/466746 --> i tried 2 methods.
problem and logic ???
Factorial of 100 has 158 digits. It is not possible to store these many digits even if we use long long int.
smallest no with 158 digit is 10^157
so you can imagine how large is no
so you can’t use this method here
you have to use array
how to use array in this ???
he following is a detailed algorithm for finding factorial.
factorial(n)
in the below example we are multiplying 5189 with 10
remember in array nos are stored in reverse order for ease of calculation
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.