有哪位大佬幫我看看,為啥還是失敗
#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;
}
2021-03-14
else{}不能帶條件啊
2021-01-22
else是不帶條件的,表示達不到if和else if的條件最后去執(zhí)行的步驟。