誰能告訴我這個怎么錯了
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score >= 10000)
? ? {
? ? ? ? printf("%s/n","鉆石玩家");
? ? }
? ? else if(score >= 5000&&score < 10000)
? ? {
? ? ? ? printf("%s/n","白金玩家");? ??
? ? }
? ? else if(score >= 1000&&scOre < 5000)
? ? {
? ? ? ? printf("%s/n","青銅玩家");? ? ?
? ? }
? ? else(score < 1000)
? ? {
? ? ? ? printf("%s/n","普通玩家");? ??
? ? }
? ? return 0;
}
2022-06-07
樓上說的加起來就對了。
另外你else if 的表達(dá)式太繁瑣了,比如第二個直接?else if(score >= 5000) 就可以了??
2021-11-16
score,有個字母你大寫了
2021-10-16