1 回答
已采纳

woodyCheers
TA贡献2条经验 获得超1个赞
#include<stdio.h> int main(){ int num, temp; int weishu; scanf("%d", &num); temp = num; while(temp != 0) { temp = temp/10; weishu ++; } printf("这是一个%d位数\n", weishu); temp = num; while(temp !=0) { printf("%d", temp%10); temp = temp/10; } return 0; }
- 1 回答
- 1 关注
- 1984 浏览
添加回答
举报
0/150
提交
取消