課程
/后端開發(fā)
/C
/C語言入門
哪里不對(duì)呢,,就是沒法通過。。。
2016-10-28
源自:C語言入門 4-3
正在回答
#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 if (score<1000)
? ? ? ? printf("%s\n","普通玩家"); ? ?
? ? return 0;
}
ReyL 提問者
最后一個(gè)else 后面不加判斷,你試試
舉報(bào)
C語言入門視頻教程,帶你進(jìn)入編程世界的必修課-C語言
1 回答程序?qū)Φ禽敵鲥e(cuò)誤?
2 回答程序中多行printf輸出出現(xiàn)錯(cuò)誤
2 回答程序錯(cuò)誤出在哪里
5 回答程序錯(cuò)誤?
4 回答輸出錯(cuò)誤,
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-10-29
#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 if (score<1000)
? ? {
? ? ? ? printf("%s\n","普通玩家"); ? ?
? ? }
? ? return 0;
}
2016-10-28
最后一個(gè)else 后面不加判斷,你試試