課程
/后端開發(fā)
/C
/C語言入門
如圖謝謝
2016-10-16
源自:C語言入門 4-4
正在回答
#include <stdio.h>int main() {??? int score = 7200;??? //完善一下代碼??? if(score>=10000)??? {??????? printf("鉆石玩家");??? }??? else if (score>=500)??? {??????? printf("白金玩家");??? ??? }??? else if (score>=1000)??? {??????? printf("青銅玩家");???? ??? }??? else??? {??????? printf("普通玩家");??? ??? }??? return 0;}
不加也是可以的。望采納。
哪里不懂可以再提問
笑丶而不語 提問者
慕碼人1608616
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ??
? ? //完善一下代碼
? ? if(score>=10000)
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ? else if(score>=5000&&score<=10000)
? ? ? ? printf("白金玩家"); ? ?
? ? else if(score>=1000&&score<=5000)
? ? ? ? printf("青銅玩家"); ? ??
? ?else
? ? ? ? printf("普通玩家"); ? ?
? ? return 0;
}
舉報
C語言入門視頻教程,帶你進入編程世界的必修課-C語言
3 回答請教一下這個問題
5 回答這題誰會教下
3 回答請教下這個怎么弄
4 回答請教一下,
2 回答請教一下,
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)微信公眾號
2016-11-04
#include <stdio.h>
int main()
{
??? int score = 7200;
??? //完善一下代碼
??? if(score>=10000)
??? {
??????? printf("鉆石玩家");
??? }
??? else if (score>=500)
??? {
??????? printf("白金玩家");???
??? }
??? else if (score>=1000)
??? {
??????? printf("青銅玩家");????
??? }
??? else
??? {
??????? printf("普通玩家");???
??? }
??? return 0;
}
不加也是可以的。望采納。
2016-10-16
哪里不懂可以再提問
2016-10-16
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ??
? ? //完善一下代碼
? ? if(score>=10000)
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ? else if(score>=5000&&score<=10000)
? ? {
? ? ? ? printf("白金玩家"); ? ?
? ? }
? ? else if(score>=1000&&score<=5000)
? ??
? ? {
? ? ? ? printf("青銅玩家"); ? ??
? ? }
? ?else
? ? {
? ? ? ? printf("普通玩家"); ? ?
? ? }
? ? return 0;
}