题解 1670: 拆分位数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1670: 拆分位数

摘要:解题思路:num1=num/100;//百位num2=num/10%10;//十位num3=num%10;//个位注意事项:希望有大佬提供不一样的思路参考代码://逆序输出这个三位数,输出个位、十位、……

1670: 拆分位数

摘要:#include<stdio.h> int main() {          //scanf("%d",&n);     char a,b,c;     a=getchar();   ……

编写题解 1670: 拆分位数

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> //定义头文件 int main() {      int i,j,k,l;    ……

拆分位数-题解<简单粗暴>(C语言代码)

摘要:这题主要是“个位”十位“百位的提取。(%的意思取余数) 个位简单//因为是3位数的,所以个位就是n/100就可以得到了(n是输入的数) 十位//可以n%100/10;还有n/10%10; 百位/……

 编写题解 1670: 拆分位数(C语言)

摘要:解题思路:int类型除某个数只取整数部分注意事项:%表示取余数参考代码://逆序输出这个三位数,输出个位、十位、百位,三个数字,用空格分开 #include <stdio.h> int main ……