請問大神,我這個哪里錯了
#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(score < 1000)
? ? {
? ? ? ? printf("%s\n","普通玩家");? ??
? ? }
? ? return 0;
}
2017-11-18
把else里面的東西刪掉
else里面不可以有東西
2017-11-11
要在大括號里
2017-11-11
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ?if(score>=10000)?
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ? else if(score>5000&&score<10000)
? ? {
? ? ? ? printf("白金玩家"); ? ?
? ? }
? ? ? ? ?else if(score>=1000&&score<50000)
? ? {
? ? ? ? printf("青銅玩家"); ? ??
? ? }
? ? ? ? ? ? else
? ? {
? ? ? ? printf("普通玩家"); ? ?
? ? }
? ? return 0;
}