这个为啥不行,大佬们

来源:4-3 分支结构之多重if-else语句

慕容5490383

2021-09-05 17:51

#include <stdio.h>

int main() 

{

    int score = 7200;

    //完善一下代码

    if(score>=10000)

    {

    printf("钻石玩家");

    }

    else if (score<10000&&score>=5000)

    {

    printf("白金玩家");    

    }

    else if(score>=1000&&score<5000)

    {

    printf("青铜玩家");     

    }

    else(score<1000)

    {

    printf("普通玩家");    

    }

    return 0;

}


写回答 关注

2回答

C语言入门

C语言入门视频教程,带你进入编程世界的必修课-C语言

924444 学习 · 20757 问题

查看课程

相似问题