哪里錯了?????請教一下??
#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 (score<1000)
? ? {
? ? ? ? printf("普通玩家");? ??
? ? }
? ? return 0;
}
2019-06-08
最后else沒有if吧?
2019-05-21
最后一個else,就是不滿足上面的else if條件以后的默認選項,else后面的條件語句多余了。
最后這個else改為else if或者去掉后面的條件語句都可以。