-->
当前位置:首页 > 题库 > 正文内容

PROGRAMMING:The number of zeros at the end of the factorial

Luz3年前 (2021-05-10)题库363
Read a number n from the input, find out n! The number of zeros at the end of.
###Input format:
The input has several lines. There is an integer m on the first line, indicating the number of the following numbers. Then there are m rows, each containing a certain positive integer n, 1 < = n < = 1000000000.
###Output format:
For each data n in the input line, output a line whose content is n! The number of zeros at the end of.
###Input example:
```in
three
three
one hundred
one thousand and twenty-four
```
###Output example:
```out
0
twenty-four
two hundred and fifty-three
```






answer:If there is no answer, please comment

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。