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 评论 361 浏览 评分:0.0
3009: 判断闰年(c语言) 摘要:解题思路:能被4整除但不能被100整除,能被400整除的年份就是闰年注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a)…… 题解列表 2023年07月04日 0 点赞 0 评论 510 浏览 评分:0.0
[编程入门]利润计算:switch-case实现 摘要:解题思路: 每个区间内的数单独计算利润,最后所有区间的利润相加,记得最终利润。 用switch-case实现: & 题解列表 2023年07月04日 0 点赞 0 评论 1032 浏览 评分:9.9
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strlen()函数在string头文件中,一定得先调用一下 char…… 题解列表 2023年07月04日 0 点赞 0 评论 358 浏览 评分: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 评论 422 浏览 评分: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 评论 476 浏览 评分:0.0
编写题解 2791: 计算邮资向上取整 摘要:解题思路:注意事项:500克整数倍参考代码:#include <stdio.h>int main(){ int x,y; char z; scanf("%d %c",&x,&z); …… 题解列表 2023年07月04日 0 点赞 0 评论 366 浏览 评分:0.0
2791: 计算邮资 摘要: #include int main() { int a,b,m; char c; scanf("%d %c",&a,&c); if(a1000) { …… 题解列表 2023年07月04日 0 点赞 0 评论 460 浏览 评分:0.0
Hello World 代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("Hell…… 题解列表 2023年07月05日 0 点赞 0 评论 377 浏览 评分:9.9
三角形图案打印 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf(" *\n"); printf(" * *\n"); printf("****…… 题解列表 2023年07月05日 0 点赞 0 评论 1018 浏览 评分:9.9