Computer Science, asked by bhan61, 1 year ago



Question: Zeros At End Of Factorial

Write 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 end

Only write the method - assume that the Main class & main method have been defined.

Note: n! < 10^5

Example Input: 3
Output: 0
Example Input: 60
Output: 14
Example Input: 100
Output: 24
Example Input: 1024
Output: 253

Answers

Answered by varad735
1
hi kam varad sun kar 6 sho do han i
Similar questions