# include & ltstdio.h & gt
Master ()
{
int a,I;
char b[ 100];
scanf("%d ",& ampa);
for(I = 0; a & gt0; a=a/ 10)
b[i++]= a % 10+48;
b[I]= 0;
for(I = I- 1; I & gt=0; I-)
printf ("%c\n ",b[I]);
}
What needs to be explained here is that the ASCII code of the number 0 is 48, and so on, so if you want to save the array correctly, you must add 48, followed by b [I] = 0;
Because all arrays must have the ending character' \ 0' (ASCII code is 0) to output normally.