题解 2818: 分离整数的各个数位

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

筛选

题解 2818: 分离整数的各个数位

摘要:解题思路:首先读取输入的整数 n。使用循环,当 n 不为 0 时执行以下步骤。在循环中,将 n 对 10 取余数,得到当前的个位数字。输出该数字,并在后面加上一个空格。将 n 除以 10,去掉已经处理……

2818 while解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    int x,y;    scanf("%d",&a);    x=a;    whil……

分离整数的各个数位

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int n;    cin>>n;    while(……

字符串倒序输出

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ char str[100]; gets(str); int len=str……

题解 2818: 分离整数的各个数位 c++

摘要:解题思路:自己想注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>#include<windows.h>using namespace std;……