输出几位数且倒序输出 摘要:解题思路:应用循环语句来就是了,超简单的;关于第二行空格这样做就好了注意事项:注意字符串的长度要带一个'\0';参考代码:#include<stdio.h>#include<strin…… 题解列表 2022年07月08日 0 点赞 0 评论 278 浏览 评分:9.9
1009:数字的处理与判断 摘要:**题目描述:** 给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123 **输入格式:** 一个不大于5位的数…… 题解列表 2022年07月04日 0 点赞 0 评论 419 浏览 评分:9.9
通俗易懂的数据处理方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,i,k,b[100]; scanf("%d",&a); for(i=0;i<=4;i++) { k…… 题解列表 2022年06月20日 0 点赞 0 评论 284 浏览 评分:0.0
关于数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string n; cin >> n; in…… 题解列表 2022年06月16日 0 点赞 0 评论 277 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,re,l; scanf("%d",&a); re=a; l=0; w…… 题解列表 2022年06月07日 0 点赞 0 评论 201 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:#include<stdio.h> int main() { char st[5],c,i=0; c=getchar(); int k=5; while(k--){ st[i++]…… 题解列表 2022年06月05日 0 点赞 0 评论 244 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string n;int main(){ cin>>n; cout<<n.size…… 题解列表 2022年05月24日 0 点赞 0 评论 198 浏览 评分:0.0
[编程入门]数字的处理与判断-两个for循环 摘要:解题思路:构造一个求位数的函数,得到位数,利用求余,除法求出倒数等注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>i…… 题解列表 2022年05月20日 0 点赞 0 评论 312 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:解题思路:这道题最简单的做法就是字符串,直接用size输出长度,然后用两个循环正序和倒叙输出字符串。注意事项:注意字符串从0开始。参考代码:#include<bits/stdc++.h>using n…… 题解列表 2022年05月13日 0 点赞 1 评论 538 浏览 评分:9.9
C++处理数字位数与输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b[5],c; cin >> a; if (a / 100…… 题解列表 2022年05月12日 0 点赞 0 评论 292 浏览 评分:0.0