求大神解答為什么會(huì)運(yùn)行失敗呀??
#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;
}
2019-08-25
去掉3個(gè)點(diǎn)就可以,求采納
2019-08-28
#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
? ? {
? ? ? ? printf("普通玩家");? ??
? ? }
? ? return 0;
}
2019-08-25
//去掉“…”再試試,明白請(qǐng)采納 ^_^?
2019-08-25
白金玩家上面是else if(score >= 5000 && score < 10000)青銅玩家那里也一樣