以前写的
/*************************
*判断等级
*
*************************/
#include <stdio.h>
void main()
{
int num,xx;
printf("请输入分数: ");
scanf("%d",&num);
xx=(int)num/10;
switch(xx)
{
case 9: printf("A\n");break;
case 8: printf("B\n");break;
case 7: printf("C\n");break;
case 6: printf("D\n");break;
default: printf("E\n");break;
}
}
偶不是广菱- -#