[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>=10000) printf("%d\n",5);…… 题解列表 2023年10月13日 0 点赞 0 评论 207 浏览 评分:9.9
数字的处理与判断c 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,f,g; scanf("%d",&a); { b=a/10000; …… 题解列表 2023年10月13日 0 点赞 0 评论 293 浏览 评分:9.9
数字的处理与判断(java代码)--循环和条件的应用 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main (String[] arg…… 题解列表 2023年11月01日 0 点赞 0 评论 319 浏览 评分:9.9
数字的处理与判断(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c,d,e; scanf("%d",&x); a=x/10000; …… 题解列表 2023年11月02日 0 点赞 0 评论 215 浏览 评分:9.9
数字的处理与判断(c语言)递归和循环 摘要:解题思路:首先分3步,第一步用while循环来获取位数第2步用递归来进行正序输出第3步用for循环,在这之前,你需要明白个位数是num/10的0次方,接着在%10取到我们所需要的位数,比如987除10…… 题解列表 2023年11月10日 0 点赞 0 评论 220 浏览 评分:9.9
正确的递归应该是啥样的?。。。 摘要:参考代码:#include<iostream> using namespace std; void print1(int a); void print2(int a); int main(…… 题解列表 2024年01月01日 0 点赞 0 评论 378 浏览 评分:9.9
利用递归求解数字的处理与判断 摘要:解题思路:首先须知,在c++中:1、当一个整数/10时,不会产生小数。即int/int != float。例如:123/10=12,而不是12.32、当一个整数%10时,产生的数是该数的末位。即:12…… 题解列表 2024年01月17日 0 点赞 0 评论 196 浏览 评分:9.9
数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n ,count = 0 ,i = 0 , a[5]…… 题解列表 2024年01月17日 0 点赞 0 评论 132 浏览 评分:9.9
此题运用了stl中的vector容器 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ vector<int>v1; int num; cin>>n…… 题解列表 2024年01月20日 0 点赞 0 评论 189 浏览 评分:9.9
题目 1009: [编程入门]数字的处理与判断 摘要:解题思路:1. 通过循环去掉最后一位,同时让计数加 2.通过循环将数字的每一位放入数组,再遍历输出。注意事项:参考代码:#include<stdio.h>//建立数组int w[10];int …… 题解列表 2024年02月29日 0 点赞 0 评论 264 浏览 评分:9.9