#include <stdio.h>
int main()
{
//1提示输入
printf("请输入分数:\n");
//2接收输入
int score;
scanf("%d",&score);
//3判断等级
if (score>=90 && score<=100)
{
printf("A\n");
}
if (score>=80 && score<=89)
{
printf("B\n");
}
if (score>=70 && score<=79)
{
printf("C\n");
}
if (score>=60 && score<=69)
{
printf("D\n");
}
if (score<=59)
{
printf("E\n");
}
return 0;
} |
|