A 100-90 B 89-80 C 79-70 不及格
#include<stdio.h>
int main(int argc, char const *argv[])
{
int score,d;
printf("请输入分数:");
scanf("%d",&score);
switch (score/10){
case 10:
case 9:
printf("A");
break;
case 8:
printf("B");
break;
case 7:
printf("C");
break;
default:
printf("不合格");
break;
}
return 0;
}
<70