為什么我跑出來的是白金玩家普通玩家?。?/h1>
#include <stdio.h>
int main()
{
int score = 7200;
if (score >= 10000)
{
printf("鉆石玩家\n");
}
else if (score >= 5000)
{
printf("白金玩家\n");
}
else if (score >= 1000)
{
printf("青銅玩家\n");
}
else (score < 1000);
{
printf("普通玩家\n");
}
return 0;
}
#include <stdio.h>
int main()
{
int score = 7200;
if (score >= 10000)
{
printf("鉆石玩家\n");
}
else if (score >= 5000)
{
printf("白金玩家\n");
}
else if (score >= 1000)
{
printf("青銅玩家\n");
}
else (score < 1000);
{
printf("普通玩家\n");
}
return 0;
}


2020-07-06
#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;}