有沒(méi)有誰(shuí)告訴我哪里錯(cuò)了啊
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score>=10000) ? ?
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ? else if(score>=5000)
? ? {
? ? ? ? printf("白金玩家"); ? ?
? ? }
? ? else if(score>=1000)
? ? {
? ? ? ? printf("青銅玩家"); ? ??
? ? }
? ? else(score<1000)
? ? {
? ? ? ? printf("普通玩家"); ? ?
? ? }
? ? return 0;
}
2016-03-24
else就代表了score<1000,你把else后面去掉試試
2016-04-13
你的條件沒(méi)有寫(xiě)全,
舉個(gè)栗子:
積分>=5000并且<10000為白金玩家-else if(score >= 5000 && score < 10000)