1个回答
展开全部
#include<stdio.h>
int main()
{
int n,t,a[8],i = 0;
scanf("%d",&n);
t = n;
while(t) {
a[i] = t%10;
i++;
t /= 10;
}
t = i;
printf("%d\n",t);
i = t-1;
printf("%d",a[i]);
while(i>0) {
i--;
printf(" %d",a[i]);
}
printf("\n");
i =0;
printf("%d",a[i]);
for(i =1;i<t;i++) printf("%d",a[i]);
printf("\n");
return 0;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询