while循环题解,就是感觉比for方便 摘要:解题思路:首先,在众多数中比较最大的数,我们首先就想到循环语句,就可以多次连续输入; 然后,输入-1结束,那就是不能等于-1咯,判定这个条件就行; …… 题解列表 2023年04月16日 0 点赞 0 评论 342 浏览 评分:0.0
数据的处理与判断(5位数以内) 摘要:解题思路:先求出数的位数,通过while循环求出,然后定义一个大小为5的数组,将每一位的数依次存入数组。最后根据不同要求,输出数组即可。注意事项:参考代码:#include<stdio.h>int m…… 题解列表 2023年04月16日 0 点赞 0 评论 332 浏览 评分:0.0
c语言不用数组,小白做法 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){int a,b,i,z,t=0,c=0;for(i=1;i<8;i++){scanf("%d%d",&a,&…… 题解列表 2023年04月17日 0 点赞 0 评论 380 浏览 评分:0.0
1072: 汽水瓶 摘要:解题思路:对数数据一次次-3,直到不符合条件跳出第二层循环为止注意事项:n -= 3;要放在if (n == 2)sum++;后面注意顺序参考代码:#include <iostream>using n…… 题解列表 2023年04月17日 0 点赞 0 评论 316 浏览 评分:0.0
这题明明很简单,你知道你为啥做不对吗? 摘要:小编刚刚一看到这个题目的时候,感觉这个题目不是很简单吗? 但是每次提交都是显示格式错误 我顿时迷糊了 不过我立马又读了一变题目 and you must note that there is …… 题解列表 2023年04月17日 0 点赞 0 评论 375 浏览 评分:0.0
津津的储蓄计划 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int money=0,month=1,ys,count=0; for(int i=1;i<13;i…… 题解列表 2023年04月17日 0 点赞 0 评论 344 浏览 评分:0.0
1043: [编程入门]三个数字的排序<1> 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int a, b, c, Max, Mid, Min; scanf("%d %d %d",…… 题解列表 2023年04月18日 0 点赞 0 评论 351 浏览 评分:0.0
1009: [编程入门]数字的处理与判断<1> 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, num, a[5], count; scanf("%d",&n); if (…… 题解列表 2023年04月18日 0 点赞 0 评论 296 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码://辗转相除法#include <stdio.h>int main() { int m, n; scanf("%d %d", &m, &n); int …… 题解列表 2023年04月18日 0 点赞 0 评论 451 浏览 评分:0.0
1018: [编程入门]有规律的数列求和<1> 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int n; scanf("%d",&n); float summ(float n); …… 题解列表 2023年04月18日 0 点赞 0 评论 271 浏览 评分:0.0