解题思路:
注意事项:
参考代码
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int d=0,b=0,c=0,a;
scanf("%d",&a);
while(a){
if(a>=85){
d++;
}
else if(a>=60){
b++;
}
else{
c++;
}
scanf("%d",&a);
}
printf(">=85:%d\n60-84:%d\n<60:%d",d,b,c);
return 0;
}
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:577 |
校门外的树 (C语言代码)浏览:1125 |
C语言程序设计教程(第三版)课后习题7.4 (Java代码)浏览:844 |
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)浏览:739 |
钟神赛车 (C++代码)浏览:867 |
C语言程序设计教程(第三版)课后习题6.8 (C语言代码)浏览:771 |
C语言训练-求函数值 (C语言代码)浏览:581 |
剪刀石头布 (C语言代码)浏览:754 |
C语言程序设计教程(第三版)课后习题8.7 (C语言代码)浏览:596 |
完数 (C语言代码)浏览:693 |