Description: In accordance with the following methods for integer x classification: if x is a number, then x belongs to the X class otherwise it will x you the digital accumulation, and get a new x iteration, in turn, class of the X can be obtained. For example, 24, 2+4=6, the number of category 24 is 6 the 39, 3+9=12, 1+2=3, the number of category 39 is 3. Input the input of a non-negative integer N per line, the number of <500 n, N was 0 at the end of. Classification of output per line corresponding integer number.
To Search:
File list (Check if you may need any files):
整数分类.c
青蛙王子1.c