为了账号安全,请及时绑定邮箱和手机立即绑定

大神快告诉我哪错了

#include <stdio.h>

int main() 

{

    int score = 7200;

    //完善一下代码

   if(score >= 10000) 

    {

        printf("%s/n","钻石玩家");

    }

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

    {

        printf("%s/n","白金玩家");    

    }

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

    {

        printf("%s/n","青铜玩家");     

    }

    else(score<1000)

    {

        printf("%s/n","普通玩家");    

    }

    return 0;

}

 

大神快告诉我哪错了

正在回答

代码语言

4 回答

else 后面不能有条件,直接输出,还有你/n反了
0 回复 有任何疑惑可以回复我~

if(){

}else if(){

}

0 回复 有任何疑惑可以回复我~

有判断的要把if带上

0 回复 有任何疑惑可以回复我~
#include <stdio.h>

int main() 

{

    int score = 7200;

    //完善一下代码

   if(score >= 10000) 

    {

        printf("%s\n","钻石玩家");

    }

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

    {

        printf("%s\n","白金玩家");    

    }

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

    {

        printf("%s\n","青铜玩家");     

    }

    else if(score<1000)

    {

        printf("%s\n","普通玩家");    

    }

    return 0;

}

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

大神快告诉我哪错了

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号