why 他顯示錯(cuò)誤
#include <stdio.h>
int main()
{
??? int score = 7200;
??? if(score>=10000)//完善一下代碼
???
??? {
??????? printf("鉆石玩家");
??? }
??? else if(score>=5000)
??? {
??????? printf("白金玩家");???
??? }
??? else(score>=1000)
??? {
??????? printf("青銅玩家");????
??? }
??? else
??? {
??????? printf("普通玩家");???
??? }
??? return 0;
}
2020-02-21
? ? int score = 7200;
? ??
? ? if(score >= 10000)
? ? {
? ? ? ? printf("%s\n","鉆石玩家");
? ? }
? ? else if(score >= 5000)
? ? {
? ? ? ? printf("%s\n","白金玩家");? ??
? ? }
? ? else if(score >= 1000)
? ? {
? ? ? ? printf("%s\n","青銅玩家");? ? ?
? ? }
? ? else?
? ? {
? ? ? ? printf("%s\n","普通玩家");? ??
? ? }
? ? return 0;
}
2019-11-27
#include <stdio.h>
int main()?
{
??? int score = 7200;
??? if(score>=10000)//完善一下代碼
????
??? {
??????? printf("鉆石玩家");
??? }
??? else if(score>=5000)
??? {
??????? printf("白金玩家");????
??? }
??? else(score>=1000)? ? ? ? //這一段少了個(gè)if
??? {
??????? printf("青銅玩家");?????
??? }
??? else
??? {
??????? printf("普通玩家");????
??? }
??? return 0;
}
2019-11-23
#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 if(score<1000)
? ? {
? ? ? ? printf("普通玩家");? ??
? ? }
? ? return 0;
}
2019-11-18
//你的 else if()沒(méi)有大&&(與)? 正確的是下面這樣的
? else if(score>=5000&&score<10000)
else if(score>=1000&&score<5000)
else if(score<1000)
//請(qǐng)采納
2019-11-16
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score>=10000)
? ? {
? ? ? ? printf("%s\n","鉆石玩家");
? ? }
? ? else if(score>=5000)
? ? {
? ? ? ? printf("%s\n","白金玩家");? ??
? ? }
? ? else if(score>=1000)
? ? {
? ? ? ? printf("%s\n","青銅玩家");? ? ?
? ? }
? else?
? ? {
? ? ? ? printf("%s\n","普通玩家");? ??
? ? }
? ? return 0;
}
2019-11-04
#include <stdio.h>
int main()
{
??? int score = 7200;
??? if(score>=10000)//完善一下代碼
???
??? {
??????? printf("鉆石玩家");
??? }
??? else if(score>=5000)
??? {
??????? printf("白金玩家");???
??? }
??? else if(score>=1000) //少了一個(gè)if
??? {
??????? printf("青銅玩家");????
??? }
??? else
??? {
??????? printf("普通玩家");???
??? }
??? return 0;
}}