#include<stdio.h>
viod digit(long n,long m,)
{if(m>0)
printf("%21d",n%10);
if(m>1)
digit(n/10,m/10);
printf("%21d,n%10);
}
main()
{long x,x2;
printf("Input a number:\n");scanf("%Id",&x);
x2=10;
digit(x,x2);
printf("\n");
}
输入:9734526
输出: