瘋狂嵌套 呼呼
#include <stdio.h>
int main()
{
??? int score = 7200;
??? //完善一下代碼
??? if(score>=1000)
??? {
??????? if(score>=5000){
???????????? if(score>=10000){
???????????????? printf("鉆石玩家");
????????????? }else{printf("白金玩家");}
??????? }else{printf("青銅玩家");}
??? }else{??????? printf("普通玩家");}
? ?
??? return 0;
}
2020-07-15
我就搞不動了 那些直接發(fā)答案的是個什么心態(tài)。授人魚不如授人以漁
2020-07-06
你這么嵌套,工作的時候是會死人的
2020-06-28
大佬為了學(xué)你這嵌套我摳了一個小時
2020-06-19
#include <stdio.h>
int main()
{
??? int score = 7200;
??? //完善一下代碼
??? if(score>=1000)
??? {
??????? if(score>=5000){
???????????? if(score>=10000){
???????????????? printf("鉆石玩家");
????????????? }else{printf("白金玩家");}
??????? }else if(score>=1000){printf("青銅玩家");}
??? }else{??????? printf("普通玩家");}
? ?
??? return 0;
}
2020-06-19
an暈了
2020-05-05
#include <stdio.h>
int main()
{
??? int score = 7200;
??? //完善一下代碼
??? if(score>=10000)
??? {
??????? printf("鉆石玩家");
??? }
??? else if(score<10000&&score>=5000)
??? {
??????? printf("白金玩家");???
??? }
??? else if(score<5000&&score>=1000)
??? {
??????? printf("青銅玩家");????
??? }
??? else
??? {
??????? printf("普通玩家");???
??? }
??? return 0;
}
2020-05-04
#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;
}
拿去不謝