#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;}
5 回答
Jukay
TA贡献3条经验 获得超0个赞
#include <stdio.h> int main() { int score = 7200; if(score >= 10000) printf("%s\n", "钻石玩家"); return 0; } if(score >= 5000){ printf("%s\n", "白金玩家"); return 0; } if(score >= 1000){ printf("%s\n", "青铜玩家"); return 0; } printf("%s\n", "普通玩家"); return 0; }
Jukay
TA贡献3条经验 获得超0个赞
#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; }
- 5 回答
- 0 关注
- 1783 浏览
添加回答
举报
0/150
提交
取消