数字的处理与判断(c语言)递归和循环 摘要:解题思路:首先分3步,第一步用while循环来获取位数第2步用递归来进行正序输出第3步用for循环,在这之前,你需要明白个位数是num/10的0次方,接着在%10取到我们所需要的位数,比如987除10…… 题解列表 2023年11月10日 0 点赞 0 评论 373 浏览 评分:9.9
最无脑解法:if 摘要:解题思路:题目要求五位数,还好不算多,直接无脑if判断a>0 and a<10就能确定为一位数,以此类推,再通过除法及取模抽取位数。参考代码:#include <stdio.h> int main(…… 题解列表 2023年11月08日 0 点赞 0 评论 329 浏览 评分:0.0
1009c语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,t,k,i=0,j,a[5]; scanf("%d",&n); while(n!=0){ t=n…… 题解列表 2023年11月05日 0 点赞 0 评论 434 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断(简单易看) 摘要:解题思路:阿巴~阿巴~阿巴~阿巴~注意事项:阿巴~阿巴~阿巴~阿巴~(简单易看)参考代码:#include<stdio.h>int main(){ int a,b,c,d,t[5],i=0,s=0,e…… 题解列表 2023年11月05日 0 点赞 0 评论 310 浏览 评分:0.0
数学的处理与判断简单解法 摘要:解题思路:通过for循环输出a的值注意事项:参考代码:a=input()print(len(a))#通过len求取a的长度for h in list(a):#通过list将a转化为列表 prin…… 题解列表 2023年11月02日 0 点赞 0 评论 375 浏览 评分:0.0
数字的处理与判断(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c,d,e; scanf("%d",&x); a=x/10000; …… 题解列表 2023年11月02日 0 点赞 0 评论 359 浏览 评分:9.9
数字的处理与判断(java代码)--循环和条件的应用 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main (String[] arg…… 题解列表 2023年11月01日 0 点赞 0 评论 484 浏览 评分:9.9
提醒几个坑点 摘要:注意事项:①第一行输出位数,记得加换行符。②第二行最后的数字后面没有空格,也就是说不能循环“%d+空格“输出。输出最后一个数字以后记得加换行符。③第三行一位一位倒序输出读入的数字,并不是算出倒序后的整…… 题解列表 2023年10月23日 0 点赞 0 评论 399 浏览 评分:0.0
数字的处理与判断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 评论 428 浏览 评分:9.9
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>=10000) printf("%d\n",5);…… 题解列表 2023年10月13日 0 点赞 0 评论 340 浏览 评分:9.9