啊這我哪兒錯了啊
#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
第二個開始%s怎么會變多了呢?一個%s輸出一串字符。而且如果是后面的可以不加上限條件,因為上面的的if已經判斷了score是小于10000的。同理,最后一個else也可以不加條件。