#include<stdio.h>
int main(int argc, char* argv[])
{
int score = 0;
printf("请输入成绩:______\b\b\b\b");
scanf("%d", &score);
/*分数<0*/
if(0 > score)
{
printf("请输入正确的分数!!!\r\n");
}
/*0<=分数<=100*/
else
{
/*0<=分数<60*/
if(0 == score || 60 > score)
{
printf("D\r\n");
}
/*60<=分数<70*/
else if(60 == score || 70 > score)
{
printf("C\r\n");
}
/*70<分数<90*/
else if(70 == score || 90 > score)
{
printf("B\r\n");
}
/*90<=分数<=100*/
else if(90 == score || 100 >= score)
{
printf("A\r\n");
}
/*100<分数*/
else
{
printf("惊为天人!!!\r\n");
}
}
getchar();
getchar();
return 0;
}