幫我看看哪里錯(cuò)了
#include <stdio.h>
int main()
{
??? int score = 7200;
??? //完善一下代碼
??? if (socre>=10000)
??? {
??????? printf("鉆石玩家");
??? }
??? else if(socre>=5000 && socre<10000)
??? {
??????? printf("白金玩家");???
??? }
??? else if(socre>=1000 && socre<5000)
??? {
??????? printf("青銅玩家");????
??? }
??? else
??? {
??????? printf("普通玩家");???
??? }
??? return 0;
}?
2018-05-28
后面就不用寫(xiě) &&? socre < 10000 了,如果第一句 if(socre > 10000)沒(méi)有執(zhí)行,就肯定小于10000
2018-05-29
神tm最佳回答,你score寫(xiě)錯(cuò)了吧,為了嚴(yán)謹(jǐn),條件一定要寫(xiě)全,不然維護(hù)起來(lái)是大麻煩