請問是哪里錯了
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ??
? ? {
? ? ? ?printf("鉆石玩家");
? ? else if(score>=10000)
? ? }
? ? {
? ? ? ? printf("白金玩家");? ??
? ? else if(score>=5000&&score<10000)
? ? }
? ? {
? ? ? ? printf("青銅玩家");? ? ?
? ? else if(score>=1000&&score<5000)
? ? }
? ? else
? ??
? ? ? ? printf("普通玩家");? ??
? ??
? ? return 0;
2019-11-28
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score>=10000)
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ? else if(score<10000&&score>=5000)
? ? {
? ? ? ? printf("白金玩家");? ??
? ? }
? ? else if(score<5000&&score>=5000)
? ? {
? ? ? ? printf("青銅玩家");? ? ?
? ? }
? else
? ? {
? ? ? ? printf("普通玩家");? ??
? ? }
? ? return 0;
}
2019-11-28
{}這個放錯地方了,代碼是對的,結(jié)構(gòu)錯了
2019-11-25
怎么沒有if
2019-11-25
多重if語句前面以及判斷了不大于10000
后面自然就不需要表示小于10000了 以此類推