2 回答

asd8532
TA贡献143条经验 获得超187个赞
#include<stdio.h> int main(){ int n=12345,s=0,count=0,t=0,z=0; //scanf("%d",&n);int tem = n; while(n){ s*=10; s+=n%10; n/=10; count++; } while(tem){ z++;t=tem%10; tem/=10; printf("第%d位数为%d\n",z,t); } printf("%d位数的反序为%d",count,s); return 0; }
- 2 回答
- 0 关注
- 1777 浏览
添加回答
举报
0/150
提交
取消