#include<stdio.h>
#include<math.h>
int main()
{
int i=0,num,q,count = 0;
int a[1000];
scanf("%d",&num);
for(i = 0;num!=0 ;i++)
{
a[i] = num%10;
num = (num - a[i])/10;
++count;
}
printf("%d\n",count);
for(i =count-1;i>=0 ;i--)
{
printf("%d ",a[i]);
}
printf("\n");
for(i =0;i<count ;i++)
{
printf("%d",a[i]);
}
return 0;
}
0.0分
1 人评分
C语言程序设计教程(第三版)课后习题11.11 (C语言代码)浏览:768 |
奖学金 (C++代码)浏览:2004 |
P1002 (C语言代码)浏览:970 |
C语言程序设计教程(第三版)课后习题9.4 (Java代码)浏览:1416 |
母牛的故事 (C语言代码)浏览:435 |
C语言程序设计教程(第三版)课后习题1.5 (C++代码)浏览:1078 |
WU-判定字符位置 (C++代码)浏览:1395 |
C语言程序设计教程(第三版)课后习题5.8 (C语言代码)浏览:672 |
找出最长的字符串来 (C语言代码)浏览:1760 |
C语言程序设计教程(第三版)课后习题9.8 (C语言代码)浏览:518 |