为什么不管我设置score为多少分,输出结果都是:等级D 呢?
#include<stdio.h>
int main() {
int score = 87;
switch(score){
case 1:score>=90&&score<=100;printf("等级A") ;break;
case2:score>=80&&score<=90;printf("等级B"); break;
case3:score>=60&&score<80; printf("等级C");break;
default:score<60; printf("等级D");break;
}
return 0;
}