#include<stdio.h>
int main()
{
int score;
printf("The Score Is :\n");
scanf("%d",&score);
if(score>=90&&score<=100)
{printf("\nThe Grade Is : A");}
else if(score>=80&&score<90)
{printf("\nThe Grade Is : B");}
else if(score>=70&&score<80)
{printf("\nThe Grade Is : C");}
else if(score>=60&&score<70)
{printf("\nThe Grade Is : D");}
else if(score>=0&&score<60)
{printf("\nThe Grade Is : E");}
return 0;
}
(帮同学写的,题目如下)