課程
/后端開發(fā)
/C
/C語言入門
為什么提示說沒輸入白金玩家呢?
2016-03-25
源自:C語言入門 4-3
正在回答
兄弟 不能這樣寫:(10000 > score >= 5000)
要這樣寫:(score<10000&&score>=5000)
雪地中的雨衣0 提問者
我也是這種情況,到底怎么回事?
我也是醉了,試了半個(gè)鐘,一直提示沒有百金,原來sorce寫錯(cuò)了
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score >= 10000)
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ? else if(score<10000&&score>=5000)
? ? ? ? printf("白金玩家"); ? ?
? ? else if(score<5000&&score>=1000)
? ? ? ? printf("青銅玩家"); ? ??
? ? else
? ? ? ? printf("普通玩家"); ? ?
? ? return 0;
}
Aplacenearby
score>=5000&&score<10000
舉報(bào)
C語言入門視頻教程,帶你進(jìn)入編程世界的必修課-C語言
2 回答為什么提示輸入白金玩家錯(cuò)誤
3 回答為什么輸出的不是白金玩家
4 回答為什么老提示我無法輸出白金玩家?到底哪里錯(cuò)了?
8 回答為什么我跑出來的是白金玩家普通玩家??!
1 回答為什么系統(tǒng)說這里沒有“白金玩家”
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-03-26
兄弟 不能這樣寫:(10000 > score >= 5000)
要這樣寫:(score<10000&&score>=5000)
2016-05-17
我也是這種情況,到底怎么回事?
2016-05-06
我也是醉了,試了半個(gè)鐘,一直提示沒有百金,原來sorce寫錯(cuò)了
2016-03-25
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score >= 10000)
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ? else if(score<10000&&score>=5000)
? ? {
? ? ? ? printf("白金玩家"); ? ?
? ? }
? ? else if(score<5000&&score>=1000)
? ? {
? ? ? ? printf("青銅玩家"); ? ??
? ? }
? ? else
? ? {
? ? ? ? printf("普通玩家"); ? ?
? ? }
? ? return 0;
}
2016-03-25
score>=5000&&score<10000