Trailing Zeros in Factorial

Python Medium 4 views
Back to Questions

Problem Description

Read n, find how many trailing zeros are in n factorial. Use loop dividing by 5.

Input Format

One integer n.

Output Format

One integer zeros.

Sample Test Case

Input:
25
Output:
6

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next