How many trailing zeros are there at the end of 100! (100 factorial)?
Note
Count factors of 5: floor(100/5)=20 and floor(100/25)=4, total 20+4=24 trailing zeros in 100!.
How many trailing zeros are there at the end of 100! (100 factorial)?
Count factors of 5: floor(100/5)=20 and floor(100/25)=4, total 20+4=24 trailing zeros in 100!.