数字的处理与判断(不用字符数组的解法) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/*给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各…… 题解列表 2023年07月04日 0 点赞 0 评论 185 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程(c语言) 摘要:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c; float m,x1,x2,t; scanf("%d %d %d",&a,&b…… 题解列表 2023年07月04日 0 点赞 0 评论 140 浏览 评分:0.0
3009: 判断闰年(c语言) 摘要:解题思路:能被4整除但不能被100整除,能被400整除的年份就是闰年注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a)…… 题解列表 2023年07月04日 0 点赞 0 评论 277 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strlen()函数在string头文件中,一定得先调用一下 char…… 题解列表 2023年07月04日 0 点赞 0 评论 153 浏览 评分:0.0
Who's in the Middle 摘要:解题思路:利用数组,冒泡排序注意事项:参考代码:#include<stdio.h>int main(){ long long int n,i,j; int arr[10000]; scanf("%ll…… 题解列表 2023年07月04日 0 点赞 0 评论 217 浏览 评分:0.0
编写题解 2790: 分段函数if--else 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float a,y; scanf("%f",&a); if(a<5){ y=-…… 题解列表 2023年07月04日 0 点赞 0 评论 247 浏览 评分:0.0
编写题解 2791: 计算邮资向上取整 摘要:解题思路:注意事项:500克整数倍参考代码:#include <stdio.h>int main(){ int x,y; char z; scanf("%d %c",&x,&z); …… 题解列表 2023年07月04日 0 点赞 0 评论 159 浏览 评分:0.0
2791: 计算邮资 摘要: #include int main() { int a,b,m; char c; scanf("%d %c",&a,&c); if(a1000) { …… 题解列表 2023年07月04日 0 点赞 0 评论 256 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数(三种方法) 摘要:解题思路:注意事项:参考代码: 方法一:#include <stdio.h>/*输入两个正整数m和n,求其最大公约数和最小公倍数。*/int m1011(){ int m,n; int mm=0,ss…… 题解列表 2023年07月05日 0 点赞 0 评论 183 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码: #include <stdio.h> #include <string.h> /* 输入一行字符,分别统计出其中英文字母、数字、空格和其他字符的…… 题解列表 2023年07月05日 0 点赞 0 评论 152 浏览 评分:0.0