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

10th Feb 2019, 4:59 AM
Neaj Morshad Ashik
Neaj Morshad Ashik - avatar
4 Respuestas
+ 3
Thanks #~swim~
10th Feb 2019, 5:56 PM
Neaj Morshad Ashik
Neaj Morshad Ashik - avatar
+ 2
`Factorial` and `Counting The Digits` are popular programming exercises. You'd just have to combine them. https://code.sololearn.com/cPd6Nn3DRTbe/#java
10th Feb 2019, 5:40 AM
Jomari Pantorilla
Jomari Pantorilla - avatar
+ 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
10th Feb 2019, 4:55 PM
Neaj Morshad Ashik
Neaj Morshad Ashik - avatar
- 1
Answer Please.☺
10th Feb 2019, 4:59 AM
Neaj Morshad Ashik
Neaj Morshad Ashik - avatar