Trailing Zeros
Practice
3.9 (210 votes)
Basic programming
Simple Math
Easy
Problem
84% Success 38996 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
Given a number find the number of trailing zeroes in its factorial.
Input Format
A single integer - N
Output Format
Print a single integer which is the number of trailing zeroes.
Input Constraints
1 <= N <= 1000
Problem Setter: Practo Tech Team
Sample Input
10
Sample Output
2
Explanation
10! = 3628800 has 2 zeros in the end.
Code Editor
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Submissions
Please login to view your submissions
Similar Problems
Points:20
441 votes
Tags:
CombinatoricsMathematicsOpenApprovedEasy
Points:20
836 votes
Tags:
Ad-HocSimulationEasyMathematicsOpenApprovedMathamatics
Points:20
42 votes
Tags:
ReadyBasic ProgrammingOpenEasyMathamatics
Editorial
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor