[编程入门]成绩评定 摘要:解题思路:菜鸡解法,不如用swich来解。即swich(l/10)注意事项:参考代码:#include<stdio.h> int main() { int l; scanf("…… 题解列表 2021年08月27日 0 点赞 0 评论 327 浏览 评分:6.0
[编程入门]数字的处理与判断 摘要:#include<stdio.h>int main(){ int a,i=0,j; int b[5]; scanf("%d",&a); while(a!=0) { …… 题解列表 2021年08月09日 0 点赞 0 评论 330 浏览 评分:0.0
1008: [编程入门]成绩评定--学习switch语句 摘要:解题思路:switch是“开关”的意思,它也是一种“选择”语句,是多分支选择语句,当嵌套的if比较少时(三个以内),用if编写程序会比较简洁。但是当选择的分支比较多时,嵌套的if语句层数就会很多,导致…… 题解列表 2021年08月09日 0 点赞 0 评论 1029 浏览 评分:9.9
成绩评定-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if (a>=90) { pri…… 题解列表 2021年08月01日 0 点赞 0 评论 662 浏览 评分:0.0
用条件运算符简单写出结果 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ int score; char grade; scanf("%d",&score); grade = score>…… 题解列表 2021年07月22日 0 点赞 0 评论 430 浏览 评分:0.0
用switch语句解决此类排比性问题 摘要:解题思路:运用switch语句解题,不用if-else注意事项:switch(表达式){case 取值1: 执行语句; break;case 取值2: 执行语句; break;……default: 执…… 题解列表 2021年07月22日 0 点赞 1 评论 1250 浏览 评分:9.9
[编程入门]成绩评定-题解(Java代码) 摘要:解题思路:多次利用if...else语句对输入成绩进行判断,并输出等级注意事项:范围0-100,可在首尾两处进行约束即可参考代码:import java.util.Scanner;public cla…… 题解列表 2021年07月14日 0 点赞 0 评论 459 浏览 评分:9.0
so easy!!!!!!成绩评定 摘要:解题思路:if比较难写,switch语句简洁点注意事项:break 要加上否则就执行下一句了,输出用putchar;先前我用的是printf一直不对,换上putchar就可以了参考代码:#includ…… 题解列表 2021年07月07日 0 点赞 0 评论 361 浏览 评分:0.0
1008: [编程入门]成绩评定(C语言三目运算) 摘要:突发奇想用三目运算符来解这道题 ```c #include int main() { int a; scanf("%d",&a); char b; b …… 题解列表 2021年07月04日 0 点赞 0 评论 509 浏览 评分:6.0
用赫夫曼树写 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a; cin >> a; if(a >= 70) { …… 题解列表 2021年06月20日 0 点赞 0 评论 339 浏览 评分:0.0