求告知哪錯(cuò)了
#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-05-09
去掉最后一個(gè)else后面的,
中間可以不用&&
第二排少打了一個(gè)括號(hào)
2019-05-09
去掉else,可以不用&&,
else(score>=5000)
......
else(score>=1000_
......
else? ? ? //這里就結(jié)束了
2019-04-22
else 后面不能跟條件 所以要加一個(gè)if
2019-04-22
printf后面括號(hào)沒(méi)寫(xiě)“%s\n”呀