麻煩幫我看看這個哪錯了
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score >= 1000)
? ? {
? ? ? ? printf("%s\n","鉆石玩家");
? ? }
? ? else if(score >= 5000)
? ? {
? ? ? ? printf("%s\n","白金玩家");? ??
? ? }
? ? else if(socre>=1000)
? ? {
? ? ? ? printf("%s\n","青銅玩家");? ? ?
? ? }
? ? else
? ? {
? ? ? ? printf("%s\n","普通玩家");? ??
? ? }
? ? return 0;
}
2018-12-14
也可以這樣寫
#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;
}
2018-11-27
這是對的代碼
2018-11-27
2018-11-05
一開始應(yīng)該是10000