Start with any number, say
At this point you got a repetition (
Write a program that asks the user to enter any number from
Input Specification
Integer numbers, one per line. The end of data is signaled by the number
0
.
Output Specification
The length of the FACTORIAL SUM LIST for each number in the input file.
Sample Input
25
0
Sample Output
13
Comments