課程
/后端開(kāi)發(fā)
/C
/C語(yǔ)言入門
求問(wèn)這個(gè)代碼哪里錯(cuò)了?
2019-07-08
源自:C語(yǔ)言入門 4-3
正在回答
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
if(score>=10000)? ??
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
else if(score>=5000)? ??
? ? ? ? printf("白金玩家");? ??
else if(score>=1000)? ??
? ? ? ? printf("青銅玩家");? ? ?
else??
? ? ? ? printf("普通玩家");? ??
? ? return 0;
}
? ? if(score >= 10000)
? ? ? ? printf("%s\n","鉆石玩家");
? ? else if(10000 >= score)
? ? ? ? printf("%s\n","白金玩家"); ? ?
? ? else if(5000 >= score)
? ? ? ? printf("%s\n","青銅玩家"); ? ??
? ? else?
? ? ? ? printf("%s\n","普通玩家"); ? ?
? ? ? ?
? ? if(score>=10000)
? ? else if(score>=5000&&score<10000)??//你少了“&&”兩個(gè)符號(hào)
? ? else if(score>=1000&&score<5000)? //你少了“&&”兩個(gè)符號(hào)
? ? else if(score<1000)
? ? else if(score>=5000&&score<10000)
? ? else if(score>=1000&&score<5000)
波波啊啊啊
慕的地21332321 回復(fù) 波波啊啊啊
你這個(gè)可能是輸入法問(wèn)題,你可以試試我的
? ? if( score >= 10000)
? ? else if( score >= 5000 )
? ? else if( score >= 1000 )
? ? else
想幫你,但是懶得輸入一遍代碼
舉報(bào)
C語(yǔ)言入門視頻教程,帶你進(jìn)入編程世界的必修課-C語(yǔ)言
4 回答和答案一樣,但運(yùn)行失敗
4 回答求大神解答為什么會(huì)運(yùn)行失敗呀??
1 回答代碼驗(yàn)證過(guò)了,但運(yùn)行結(jié)果是錯(cuò)的,怎么回事,求大神解答
2 回答這樣怎么也是運(yùn)行成功呢?求大神解答
2 回答求大神解答,下標(biāo)的含義是什么,百度了但是還沒(méi)懂
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2019-07-23
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
if(score>=10000)? ??
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
else if(score>=5000)? ??
? ? {
? ? ? ? printf("白金玩家");? ??
? ? }
else if(score>=1000)? ??
? ? {
? ? ? ? printf("青銅玩家");? ? ?
? ? }
else??
? ? {
? ? ? ? printf("普通玩家");? ??
? ? }
? ? return 0;
}
2019-07-22
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score >= 10000)
? ? {
? ? ? ? printf("%s\n","鉆石玩家");
? ? }
? ? else if(10000 >= score)
? ? {
? ? ? ? printf("%s\n","白金玩家"); ? ?
? ? }
? ? else if(5000 >= score)
? ? {
? ? ? ? printf("%s\n","青銅玩家"); ? ??
? ? }
? ? else?
? ? {
? ? ? ? printf("%s\n","普通玩家"); ? ?
? ? }
? ? return 0;
? ? ? ?
}
2019-07-17
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score>=10000)
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ? else if(score>=5000&&score<10000)??//你少了“&&”兩個(gè)符號(hào)
? ? {
? ? ? ? printf("白金玩家");? ??
? ? }
? ? else if(score>=1000&&score<5000)? //你少了“&&”兩個(gè)符號(hào)
? ? {
? ? ? ? printf("青銅玩家");? ? ?
? ? }
? ? else if(score<1000)
? ? {
? ? ? ? printf("普通玩家");? ??
? ? }
? ? return 0;
}
2019-07-17
#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 if(score<1000)
? ? {
? ? ? ? printf("普通玩家");? ??
? ? }
? ? return 0;
}
2019-07-12
你這個(gè)可能是輸入法問(wèn)題,你可以試試我的
#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
? ? {
? ? ? ? printf("%s\n","普通玩家"); ? ?
? ? }
? ? return 0;
}
2019-07-08
想幫你,但是懶得輸入一遍代碼