哪里有錯誤
int score = 7200; ? ?】 ? ?if (score >=10000) ? ?{ ? ? ? ?printf("鉆石玩家"); ? ?} ? ?else if (score >=5000 %% score< 10000) ? ?{ ? ? ? ?printf("白金玩家"); ? ? ? ?} ?else ?if (score >=1000 %% score < 5000) ? ?{ ? ? ? ?printf("青銅玩家"); ? ? ? ?} ?else ? ?{ ? ? ? ?printf("普通玩家"); ? ? ? ?} 則么會這樣???
2017-04-14
#include <stdio.h>
int main()
{
??? int score = 5201314;
??? //完善一下代碼
??? if (score>=100000)
??? {
??? printf("神級玩家");
??? }
???? else? if (score>=10000)
??? {
??????? printf("鉆石玩家");
??? }
??? else if (score>=5000)
??? {
??????? printf("白金玩家");???
??? }
??? else if (score>=1000)
??? {
??????? printf("青銅玩家");????
??? }
??? else? if (score<1000)
??? {
??????? printf("普通玩家");???
??? }
??? return 0;
}
2017-04-23
....打錯了。。。
2017-04-14
而且你的邏輯運算符還用錯了,應該用&&的
2017-04-14
不用用到那個邏輯運算符的