請問錯在哪了
int main()
{
??? int score = 7200;
??? if(score >= 10000)
??? {
??????? printf("%s\n","鉆石玩家");
??? }
??? else if(score >= 5000 && score < 10000)
??? {
??????? printf("%s\n","白金玩家");???
??? }
??? else(score>=1000 && score < 5000)
??? {
??????? printf("%s\n","青銅玩家");????
??? }
??? else(score<1000)
??? {
??????? printf("%s\n","普通玩家");???
??? }
??? return 0;
}
2017-10-14
#include<stdio.h>? 首先 你這開頭個沒加;然后你倒數(shù)第二個esle if 沒有加if ; 最后你那個else是不用加 (score<1000)這個條件的 ,因?yàn)閑lse已經(jīng)包含這個條件了 ,所有把它刪去就好了