解题思路:
注意事项:
参考代码:
#include<stdio.h>
int main()
{
int a,b,c;
float score;
a=b=c=0;
while(scanf("%f",&score)&&score>0)
{
if(score>=85) a++;
else if(score>=60&&score<=84) b++;
else c++;
}
printf(">=85:%d\n60-84:%d\n<60:%d",a,b,c);
return 0;
}
0.0分
0 人评分
C语言训练-排序问题<1> (C++代码)浏览:589 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:664 |
【绝对值排序】 (C++代码)浏览:670 |
简单的a+b (C语言代码)浏览:335 |
DNA (C语言描述,数据结构)浏览:850 |
【计算直线的交点数】 (C语言代码)浏览:1442 |
a+b浏览:432 |
出圈】指针malloc版浏览:355 |
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)浏览:484 |
A+B for Input-Output Practice (IV) (C语言代码)浏览:503 |