課程
/后端開發
/C
/C語言入門
問題出哪里,總是不可以
2015-06-07
源自:C語言入門 4-3
正在回答
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score>=10000)
? ? {
? ? ? ? printf("鉆石玩家\n");
? ? }
? ? else if(score>=5000&&score<10000)
? ? ? ? printf("白金玩家\n"); ? ?
? ? else if(score>=1000&&score<5000)
? ? ? ? printf("青銅玩家\n";?
? ? else (score<1000)
? ? ? ? printf("普通玩家\n"); ? ?
? ? return 0;
}
試一下,2年多沒碰C了。
chavin
舉報
C語言入門視頻教程,帶你進入編程世界的必修課-C語言
2 回答問題出在哪里呀,總是輸出錯誤
3 回答這里哪里錯了?總是不能算出結果
1 回答我的case和break總是非法的是哪里出了問題
1 回答請問哪里有問題??總是運行錯誤
3 回答不知道是哪里出了問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-06-07
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score>=10000)
? ? {
? ? ? ? printf("鉆石玩家\n");
? ? }
? ? else if(score>=5000&&score<10000)
? ? {
? ? ? ? printf("白金玩家\n"); ? ?
? ? }
? ? else if(score>=1000&&score<5000)
? ? {
? ? ? ? printf("青銅玩家\n";?
? ? }
? ? else (score<1000)
? ? {
? ? ? ? printf("普通玩家\n"); ? ?
? ? }
? ? return 0;
}
試一下,2年多沒碰C了。