這個代碼哪里有問題呢?求高手解答
#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;
}
2016-01-30
加上括號也不對呢
2016-01-30
&&兩邊如果有算式,要先加括號,不然運算就混亂了