請(qǐng)問(wèn)哪里出了問(wèn)題呢~謝謝~~
#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(score<1000) ?
{
? ? ? ? printf("普通玩家"); ? ?
}
? ? return 0;
}
2017-01-19
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score >= 10000)
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ? else if(score>=5000)
? ? {
? ? ? ? printf("白金玩家"); ? ?
? ? }
? ? else if(score>=1000)
? ? {
? ? ? ? printf("青銅玩家"); ? ??
? ? }
? ? else
? ? {
? ? ? ? printf("普通玩家"); ? ?
? ? }
? ? return 0;
}
2017-01-19
把 ?&&及后面的部分 ?去掉
2017-01-19
最后一個(gè)else后面加if或者else后面不要條件了