+ 2
How can I count number of digits of factorial of a number?
Given number n, You Have to find out number of digits in factorial n. Example : n=5; then n!=120 so the answer is 3. because in 5! there is 3 digits.
4 Respuestas
+ 3
Thanks #~swim~
+ 2
`Factorial` and `Counting The Digits` are popular programming exercises. You'd just have to combine them.
https://code.sololearn.com/cPd6Nn3DRTbe/#java
+ 2
#~swim~
if n=100 then? 100! is very high , i code in C++, long long int is 64 bit. variable FacOfN can't contain the value 100!, there will be overflow
- 1
Answer Please.☺