課程
/后端開發
/C
/C語言入門
為什么提示說沒輸入白金玩家呢?
2016-03-25
源自:C語言入門 4-3
正在回答
兄弟 不能這樣寫:(10000 > score >= 5000)
要這樣寫:(score<10000&&score>=5000)
雪地中的雨衣0 提問者
我也是這種情況,到底怎么回事?
我也是醉了,試了半個鐘,一直提示沒有百金,原來sorce寫錯了
#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
舉報
C語言入門視頻教程,帶你進入編程世界的必修課-C語言
2 回答為什么提示輸入白金玩家錯誤
3 回答為什么輸出的不是白金玩家
8 回答為什么我跑出來的是白金玩家普通玩家??!
4 回答為什么老提示我無法輸出白金玩家?到底哪里錯了?
1 回答為什么系統說這里沒有“白金玩家”
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-03-26
兄弟 不能這樣寫:(10000 > score >= 5000)
要這樣寫:(score<10000&&score>=5000)
2016-05-17
我也是這種情況,到底怎么回事?
2016-05-06
我也是醉了,試了半個鐘,一直提示沒有百金,原來sorce寫錯了
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