如题所述
#include <stdio.h>
int main()
{int x;
char c;
scanf("%d",&x);
if(x>=90)c='A';
else if(x>=80)c='B';
else if(x>=70)c='C';
else if(x>=60)c='D';
else c='E';
printf("%d --> %c\n",x,c);
return 0;
}
int main()
{int x;
char c;
scanf("%d",&x);
if(x>=90)c='A';
else if(x>=80)c='B';
else if(x>=70)c='C';
else if(x>=60)c='D';
else c='E';
printf("%d --> %c\n",x,c);
return 0;
}
温馨提示:答案为网友推荐,仅供参考