#include<stdio.h>
int main()
{
float x;
int leap;
scanf("%f",&x);
if(x>=90)
{
if(x>=80&&x<90)
{
if(x>=70&&x<80)
{
if(x>=60&&x<70)
{
if(x<60)
leap=1;
}else leap=2;
}else leap=3;
}else leap=4;
}else leap=5;
switch(leap)
{case 1:printf("you grade is:E");break;
case 2:printf("you grade is:D");break;
case 3:printf("you grade is:C");break;
case 4:printf("you grade is:B");break;
case 5:printf("you grade is:A");break;
}
return 0;
}
倚天杖
qq_遁去的一_1