Factorial Trailing Zeros

Medium

📝 Description

Count trailing zeros in n! (number of times divisible by 10)

Input Format

A single integer n

Output Format

Number of trailing zeros

Constraints

1 ≤ n ≤ 10^4

🔍 Sample Input

25
            

✅ Sample Output

6
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run