多些if 就可以了,不用else。
#include <stdio.h>
int main()
{
int a;
while (scanf("%d",&a)==1)
{
if ((a<=100)&&(a>=90)) printf("A\n");
if ((a<=89)&&(a>=80)) printf("B\n");
if((a<=79)&&(a>=70)) printf("C\n");
if ((a<=69)&&(a>=60)) printf("D\n");
if ((a<60)&&(a>=0)) printf("E\n");
if ((a<0)||(a>100)) printf("Score is error!\n");
}
}