学生成績分類(等級)
#include
#include
int main()
{
int score;
scanf ("%d",&score);
if(score<=100&&score>=0)
{switch (score/10)
{
case 10:
case 9:printf("A
");break;
case 8:printf("B
");break;
case 7:printf("C
");break;
case 6:printf("D
");break;
default :printf("E
");break;
}
}else printf("error
");
return 0;
}