# include & ltstring.h & gt
# include & ltiostream.h & gt
void main()
{
int a,I,k,j = 0;
int b[20];
Cout < < "Enter an integer:";
CIN & gt; & gta;
I = a; //backup a.
while(I & gt; 9)
{ k = I % 10; //The remainder is recorded in the array.
b[j]= k;
I = I/ 10; //I rounded the last bit of the record in the array.
j++;
} j-; //j is a little too much.
Cout & lt& lt me; //i is already less than 10, and the last number is i.
for(; j & gt=0; j -)
cout & lt& lt“,”& lt& ltb[j];
cout & lt& ltendl
getchar();
}
I've been making it up. It seems simple or mysterious! !