成绩转换
#include<iostream>
using namespace std;
int main()
{
int grade;
while(cin>>grade)
{
if(grade<=100 && grade>=90)
cout<< "A" <<endl;
if(grade<90 && grade>=80)
cout<< "B" <<endl;
if(grade<80 && grade>=70)
cout<< "C" <<endl;
if(grade<70 && grade>=60)
cout<< "D" <<endl;
if(grade<60 && grade>=0)
cout<< "E" <<endl;
if(grade<0 || grade>100)
cout<< "Score is error!" <<endl;
}
return 0;
}