#include<stdio.h>
int main()
{
int x;char grade;
printf("输入你的成绩:");
scanf("%d",&x);
switch((int)x/10)
{
case 10:
case 9:
printf("你的等级为A");
break;
case 8:
printf("你的等级为B");
break;
case 7:
printf("你的等级为C");
break;
case 6:
printf("你的等级为D");
break;
case 5:
case 4:
case 3:
case 2:
case 1:
case 0:
printf("你的等级为E");
break;
}
return 0;
}
11-17
36
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)