大佬們,哪里錯(cuò)了 我實(shí)在不知道了
#include <stdio.h>
int main()
{
??? int score = 7200;
??? //完善一下代碼
??? if(score>=10000)
??? {
??????? printf("鉆石玩家");
??? }
??? else if(score>=5000)
??? {
??????? printf("白金玩家");???
??? }
??? else if(score>=1000)
??? {
??????? printf("青銅玩家");????
??? }
??? else(score<1000)
??? {
??????? printf("普通玩家");???
??? }
??? return 0;
}
2019-12-31
最后一個(gè)else沒(méi)有表達(dá)式,如果有就要加上if
2019-12-20
最后else(score<1000); ? 后面加個(gè);就對(duì)的
2019-12-17
最后的else沒(méi)有判斷條件
2019-12-15
#include <stdio.h>
int main()
{
??? int score = 7200;
??? //完善一下代碼
??? if(score>=10000)
??? {
??????? printf("鉆石玩家");
??? }
??? else if(score>=5000)
??? {
??????? printf("白金玩家");???
??? }
??? else if(score>=1000)
??? {
??????? printf("青銅玩家");????
??? }
??? else
??? {
??????? printf("普通玩家");???
??? }
??? return 0;
}