|
|||
Trailing ZerosGiven a number, find the number of trailing zeros in its factorial. Input SpecificationA single integer N (1 ≤ N ≤ 1000). Output SpecificationPrint a single integer, the number of trailing zeros. Sample Input
Output for Sample Input
Sample Explanation10! = 3 628 800 has 2 zeros at the end. |
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |