萧小白


私信TA

用户名:g7xcy

访问量:2670

签 名:

等  级
排  名 3675
经  验 1811
参赛次数 0
文章发表 14
年  龄 0
在职情况 学生
学  校
专  业

  自我简介:

解题思路:

注意事项:

参考代码:

#include <cstdio>
using namespace std;
int main(){
  int a(0),b(0),c(0),score;
  do{
    scanf("%d",&score);
    if(score>85)a++;
    if(score>=60&&score<84)b++;
    if(score<60&&score>0)c++;
  }while(score>0);
  printf(">=85:%d\n60-84:%d\n<60:%d\n",a,b,c);
  return 0;
}


 

0.0分

0 人评分

  评论区