main()
{
int gread,x;
printf("please input gread=");
scanf("%d",gread);
x=gread/10;
switch(x)
{case 10:printf("A");break;
case 9: printf("A");break;
case 8: printf("B");break;
case 7: printf("C");break;
case 6: printf("E");break;
}
}
其实就是简单的学生成绩等级问题,90-100是A,80-89是B,........为什么我输入完成绩回车之后没有任何反应...