Wednesday 5 September, 2007

000000000000000...............


How many trailing 0's does 100! have? Generalize it for any N! after you have computed for 100!

N! = Factorial N = N * N-1 * N-2 * ......2 * 1

Level: {Medium to Hard-lets see}

To Shashwat: Maybe you know the answer as I told you how to solve these kind of questions in class X. If you remember, please don't post the solution.

2 comments:

"Sajal" said...

I have one more great puzzle which you will definitely enjoy(uses good thinking). Please solve this quickly!

"Sajal" said...

As nobody was able to answer this question, I am giving you the solution.
100!=24zeros
n!=n/5 + n/25
Note-N is an integer type and not float type.