課程
/后端開發
/C
/C語言入門
&&和,用誰比較合適呢?
2021-12-13
源自:C語言入門 4-3
正在回答
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score >=10000)?
? ? {
? ? ? ? printf("%s\n","鉆石玩家");
? ? }
? ? else if (score>=5000&& score<10000)?
? ? ? ? printf("%s\n","白金玩家");? ??
? ? else if (score>=1000&& score<5000)
? ? ? ? printf("%s\n","青銅玩家");? ? ?
? ? else if (score<1000)
? ? ? ? printf("%s\n","普通玩家");? ??
? ? return 0;
}
weixin_慕標8477849
舉報
C語言入門視頻教程,帶你進入編程世界的必修課-C語言
2 回答請問各位什么電腦比較適合IT使用?
1 回答const和define的區別,用那個比較好
2 回答上下行誰和誰對齊呢?
1 回答為什么知道循環次數適合用for,不知道循環次數適合用while和do while
2 回答大家有沒有推薦的比較好的適合我這種小白的關于編程的書?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2021-12-28
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score >=10000)?
? ? {
? ? ? ? printf("%s\n","鉆石玩家");
? ? }
? ? else if (score>=5000&& score<10000)?
? ? {
? ? ? ? printf("%s\n","白金玩家");? ??
? ? }
? ? else if (score>=1000&& score<5000)
? ? {
? ? ? ? printf("%s\n","青銅玩家");? ? ?
? ? }
? ? else if (score<1000)
? ? {
? ? ? ? printf("%s\n","普通玩家");? ??
? ? }
? ? return 0;
}