#include"stdio.h"
int jishu(int data);
int main()
{
int count;
int n,i,j;
int a[10];
printf("please input data:");
scanf("%d",&n);
count=jishu(n);
for(i=0;i<count;i++)
{
a[i]=n%10;
n=n/10;
}
for(j=count-1;j>-1;j--)
printf("%d ",a[j]);
return 0;
}
int jishu(int data)
{
int count=0;
do
{
data=data/10;
count++;
}while(data!=0);
return count;
}