請(qǐng)問(wèn)哪里錯(cuò)了呀,找了好久沒(méi)找到錯(cuò)誤
#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-09-09
#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{
???????? printf("%n\n","普通玩家");
???? }
??? return 0;
}
2019-09-04
沒(méi)錯(cuò)呀,我復(fù)制了你的代碼運(yùn)行,通過(guò)了。