解题思路:用While循环  

注意事项:

参考代码:

#include<stdio.h>

int main()

{

    int x;

    while(scanf("%d",&x)==1)

    {

        if(x>=90&&x<=100)

            printf("A\n");

        else if(x>=80&&x<90)

            printf("B\n");

        else if(x>=70&&x<80)

            printf("C\n");

        else if(x>=60&&x<70)

            printf("D\n");

        else if(x>=0&&x<60)

            printf("E\n");

        else

            printf("Score is error!\n");

    }

    return 0;

}


 

0.0分

1 人评分

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

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

代码解释器

代码纠错

SQL生成与解释

  评论区