legend


私信TA

用户名:dotcpp0599065

访问量:13664

签 名:

fish or cut baits

等  级
排  名 208
经  验 6246
参赛次数 0
文章发表 75
年  龄 0
在职情况 学生
学  校 黑龙江大学
专  业

  自我简介:

you can you up,no can don't bb

解题思路:直接使用简单的分支就好

注意事项:

参考代码:

#include<stdio.h>

int main()

{

    int a;

    scanf("%d",&a);

    if(a>=80&&a<=100)

    {

        printf("A");

    }

    if(a>=60&&a<=79)

    {

        printf("B");

    }

    if(a>=40&&a<=59)

    {

        printf("C");

    }

    if(a<40)

    {

        printf("D");

    }

    return 0;

}


 

0.0分

1 人评分

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

编程语言转换

万能编程问答

代码解释器

  评论区