#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语言程序设计教程(第三版)课后习题1.6 (C语言代码)浏览:694 |
C语言程序设计教程(第三版)课后习题6.3 (C++代码)浏览:949 |
C语言考试练习题_一元二次方程 (C语言代码)浏览:575 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:901 |
数对 (C语言代码)浏览:697 |
蚂蚁感冒 (C语言代码)浏览:1319 |
GC的苦恼 (C语言代码)浏览:618 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:672 |
A+B for Input-Output Practice (I) (C语言代码)浏览:426 |
母牛的故事 (C语言代码)浏览:478 |