33问答网
所有问题
当前搜索:
用ifelse编写成绩等级
利用if
-
else
语句实现
成绩
对应的
等级
答:
if
(score>=90) printf("优\n");if(score>=80&&score<=89) printf("良\n");if(score>=70&&score<=79) printf("中\n");if(score>=60&&score<69) printf("及格\n");
else
printf("不及格\n");}
C语言中输入
等级
得出
成绩分数
的程序,
用if
和
else
语句
答:
else
if
(c=='D')printf("%c:59~0\n",c);else printf("Input error!\n");return 0;}
已知小明
成绩
为85分,请
使用if else
语句判断小明的成绩属于以下哪个等 ...
答:
else
if
(x>=75)printf("B");else if(x>=60)printf("C");else printf("D");
...给出一个百分制成绩,要求输出
成绩等级
A、B、C、D、E。
答:
else
if
(d>89)s='A';else if(d>79)s='B';else if(d>69)s='C';else if(d>59)s='D';else if(d>=0)s='E';
else s
=0;if(s!=0)printf("%c",s);else printf("error");return 0;}
C语言
成绩等级
查询系统(
用if else
嵌套怎么做出来 ?)
答:
if
(score<=100 && score>80){ printf("你的
成绩
是优秀!\n");}}
else
if(score<=80 && score>=60){ printf("你的成绩是良好!\n");}else(score<60){ printf("你的成绩是不及格\n");}
用ifelse
语句实现程序,将学时
成绩等级
按照ABCED输出?
答:
include<stdio.h> int main(){ int x;scanf("%d",&x);
if
(x>=85)printf("A\n");
else
if(x>=75)printf("B\n");else if(x>=60)printf("C\n");else if(x>=45)printf("D\n");else printf("E\n");return 0;}
从键盘输入学生成绩,判断并输出学生
成绩等级
.(
用if
-
else
语句)
答:
include <stdio.h>printf("请输入
成绩
:\n");float score;scanf("%f",&score);
if
(score>90) printf("A");
else
if (score>80) printf("B");else printf("C");
将学生
成绩
划分
等级
,标准如下:(if…
elseif
)“优秀”,>=90; “良好...
答:
int score,mark;
if
(score>=90)mark=1;
else
if(score>=80&&score<90)mark=2;else if(score>=60&&score<80)mark=3;else if(score<60)mark=4;
...100的整数) ,
用if
…
else
语句判断
成绩
的
等级
?
答:
如下。求采纳。
...
等级
,否则输出输入的
成绩
不合法。(分别
用IF ELSE
和SWITCH语句)_百度...
答:
include <stdio.h>int main (void){ int x;//定义变量 scanf ("%d",&x);//获取输入的值
if
(x<0||x>100) { printf("输入的
成绩
不合法\n"); return 0; } switch (x/10){ case 10: case 9: printf ("A\n");break; case 8: printf ("B\n...
1
2
3
4
5
6
7
8
9
10
涓嬩竴椤
灏鹃〉
其他人还搜
c语言输入成绩输出等级
if语句输出成绩等级ABCDE
c语言成绩分等级核心代码
c语言用if编写成绩等级
c语言表示成绩等级的代码
c语言成绩排序从高到低
编程实现学生成绩等级划分
if判断成绩等级
C语言成绩等级划分