Saved Bookmarks
| 1. |
Zeros At End Of FactorialWrite a method Met that takes as parameter an integer n.You have to print the number of zeros at the end of the factorial of n.For example, 3! = 6. The number of zeros are 0. 5! = 120. The number of zeros at the end are 1.Hint: Think about which numbers multiplication leads to a 0 at the endThe Met method has to be inside a Solution class. Please check the code editor for the ideal method definition.Note: n! < 10^5Example Input: 3Output: 0Example Input: 60Output: 14Example Input: 100Output: 24Example Input: 1024Output: 253 |
| Answer» | |