Its wrong program mentor

For no. 7 and 8 it must return 2 ( 7! =5040 , 8!=40320)
As there are two zeroes so it must return 2
but your program returning 1
Tell me if i’m wrong

Hi @Rupesh-1984
The question is asking about trailing zeroes, which means zeroes at the end of a number. For example, trailing zeroes is 12000 is 3, and in 10200 is 2, in 2345 is 0 and is 1000009230 is 1
so for 7! which is 5040, the trailing zeroes is 1, and same goes for 8! which is 40320.

ohh sorry…I didn’t got that what question is telling to do!!!

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.