哪錯了?大哭!
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score >= 10000)
? ? {
? ? ? ? printf("%s\n","鉆石玩家");
? ? }
? ? else if(socre >= 5000)
? ? {
? ? ? ? printf("%s\n","白金玩家"); ? ?
? ? }
? ? else if(socre >= 1000)
? ? {
? ? ? ? printf("%s\n","青銅玩家"); ? ??
? ? }
? ? else
? ? {
? ? ? ? printf("%s\n","普通玩家"); ? ?
? ? }
? ? return 0;
}
2016-02-04
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score >= 10000)
? ? {
? ? ? ? printf("%s\n","鉆石玩家");
? ? }
? ? else if(socre >= 5000)//你有沒有發(fā)現(xiàn)你的單詞打錯了
? ? {
? ? ? ? printf("%s\n","白金玩家"); ? ?
? ? }
? ? else if(socre >= 1000)//同上
? ? {
? ? ? ? printf("%s\n","青銅玩家"); ? ??
? ? }
? ? else
? ? {
? ? ? ? printf("%s\n","普通玩家"); ? ?
? ? }
? ? return 0;
}
2016-03-16
一樓正解,從第十行開始變量名打錯了。是score,不是socre.
2016-02-28
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ??
? ? ? ? if(score>=10000)
? ? {
? ? ? ? printf("鉆石玩家");
? ? }
? ??
? ? else if(score>=5000&&score<=10000) ?//題目說>=5000 ? <=10000 中間加個&& 下邊都是
? ? {
? ? ? ? printf("白金玩家");
? ? } ? ?
? ? else if(score>=1000&&score<=5000)
? ? {
? ? ? ? printf("青銅玩家"); ? ??
? ? }
? ? else
? ? {
? ? ? ? printf("普通玩家"); ? ?
? ? }
? ? return 0;
}
這是我寫的 ??