xyz


私信TA

用户名:xyz20090410

访问量:4680

签 名:

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

  自我简介:

上代码

#include<stdio.h>
int main()
{
    int a,b=0,c=0,d=0;
    scanf("%d", &a); 
    while(a>0){
    if(a>=85)
        b++;
    else if(a>=60)
        c++;
    else
        d++;
    scanf("%d", &a); 
    } 
    printf(">=85:%d\n",b);
    printf("60-84:%d\n",c);
    printf("<60:%d",d);
    return 0;
}


 

0.0分

2 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区