啊這我哪兒錯(cuò)了啊
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score>=10000)
? ? {
? ? ? ? printf("%s\n","鉆石玩家");
? ? }
? ? else if(score>=5000&&score<10000)
? ? {
? ? ? ? printf("%s\n","%s\n","%s\n","白金玩家");? ??
? ? }
? ? else if(score>=1000&&score<5000)
? ? {
? ? ? ? printf("%s\n","%s\n","青銅玩家");? ? ?
? ? }
? ? else(score<1000)
? ? {
? ? ? ? printf("%s\n","普通玩家");? ??
? ? }
? ? return 0;
}
2021-03-17
第二個(gè)開(kāi)始%s怎么會(huì)變多了呢?一個(gè)%s輸出一串字符。而且如果是后面的可以不加上限條件,因?yàn)樯厦娴牡膇f已經(jīng)判斷了score是小于10000的。同理,最后一個(gè)else也可以不加條件。