#include<stdio.h> int main() { int scores[1000],score,i=0,j,excellent=0,pass=0,unpass=0; while(scanf("%d",&score)!=EOF&&score>0) scores[i++]=score; for(j=0;j<i;j++) { if(scores[j]>=85) excellent++; else if(scores[j]>=60&&scores[j]<85) pass++; else unpass++; } printf(">=85:%d\n60-84:%d\n<60:%d\n",excellent,pass,unpass); return 0; }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:594 |
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:684 |
C语言程序设计教程(第三版)课后习题1.6 (C语言代码)浏览:584 |
【明明的随机数】 (C++代码)浏览:781 |
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)浏览:968 |
C语言程序设计教程(第三版)课后习题4.9 (C语言代码)浏览:377 |
简单的for循环浏览:1410 |
2^k进制数 (C语言描述,蓝桥杯)浏览:1420 |
1071题解浏览:493 |
C二级辅导-同因查找 (C语言代码)浏览:568 |