為什么最后的else(score<1000)不能有(score<1000)這個條件
#include?<stdio.h>int?main()?{????int?score?=?7200;????//完善一下代碼????if(score>=10000)????{????????printf("鉆石玩家");????}????else?if(score>=5000)????{????????printf("白金玩家");????????}????else?if(score>1000)????{????????printf("青銅玩家");?????????}???else(score<1000)????{????????printf("普通玩家");????????}????return?0;}
2019-12-19
如果你要在后面加上最后一個表達(dá)式,必須要有if,否則語句到else時突然出現(xiàn)表達(dá)式,無法識別或者識別錯誤
2019-12-17
那等于1000呢?