1, it is a few digits
2, the output each digit
3, according to the reverse output of digits, such as the original number is 321, output 123
A no greater than the number of 99999
#include
Int main ()
{
Int the number, length;
Int a [5]={0};
Int num, I=0;
Int count=0;
int sum=0;
The scanf (" % d ", & amp; Number);
If (number<99999)
{
Num=number;
While (num!=0)
{
A [I]=num % 10;
Num=num/10;
i++;
count++;
}
Printf (" % d \ n ", count);
Length=I;
For (I - 1; i> 0; I -)
{
Printf (" % d ", a [I - 1));
}
printf("\n");
for(i=0; i
Printf (" % d ", a [I]);
}
printf("\n");
}
}