為什么我這個怎么都輸出不出來啊?
應(yīng)該沒有錯誤才對啊?錯在哪了?
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score>=10000)
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ? ? ? else if(score>=5000&&score<10000);
? ? {
? ? ? ? printf("白金玩家"); ? ?
? ? }
? ? ? ? else if(score>=1000&&score<5000);
? ? {
? ? ? ? printf("青銅玩家"); ? ??
? ? }
? ? ? ? else
? ? {
? ? ? ? printf("普通玩家"); ? ?
? ? }
? ? return 0;
}
2017-07-25
else if后面不用分號
2017-07-25
else if條件后邊多加了分號