Description
从键盘输入一个长整数(不超过10位),从高位开始逐位分割并输出。
Input
正整数n,不含前导零。
Output
分割的整数序列,各整数之间用空格格开。
注意,最后一个数字后面没有空格!
Sample
Input
678123
Output
6 7 8 1 2 3
> #include> #include > #include int main() { > int n,i=0; > int a[10000]; > int j; > scanf("%d",&n); > > while(n!=0) > { > a[i++]=n%10; > n=n/10; > > } > > for(j=i-1;j>0;j--) > printf("%d ",a[j]); > printf("%dn",a[0]); > > return 0; }



