課程
/后端開發(fā)
/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_慕標(biāo)8477849
舉報
C語言入門視頻教程,帶你進(jìn)入編程世界的必修課-C語言
2 回答請問各位什么電腦比較適合IT使用?
1 回答const和define的區(qū)別,用那個比較好
2 回答上下行誰和誰對齊呢?
1 回答為什么知道循環(huán)次數(shù)適合用for,不知道循環(huán)次數(shù)適合用while和do while
2 回答大家有沒有推薦的比較好的適合我這種小白的關(guān)于編程的書?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
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;
}