解题思路:
注意事项:
参考代码:
#include <bits/stdc++.h>
using namespace std;
int check(int a){
int gewei = a%10;
int shiwei = a/10%10;
int baiwei = a/100%10;
int qianwei = a/1000%10; //2345
printf("%d %d %d %d",qianwei,baiwei,shiwei,gewei);
}
int main()
{
int a = 0;
scanf("%d",&a);
check(a);
return 0;
}
0.0分
0 人评分
钟神赛车 (C语言代码)浏览:880 |
【回文数(二)】 (C++代码)浏览:875 |
矩阵乘法 (C++代码)浏览:1463 |
A+B for Input-Output Practice (IV) (C++代码)浏览:678 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:878 |
A+B for Input-Output Practice (III) (C语言代码)浏览:576 |
C语言训练-求函数值 (C语言代码)浏览:583 |
C语言程序设计教程(第三版)课后习题8.2 (C语言代码)浏览:5235 |
1126题解浏览:599 |
C语言训练-字符串正反连接 (C语言代码)浏览:634 |