----------------解决方案--------------------------------------------------------
#include<iostream.h>
void main()
{
int score;
char grade;
cin>>score;
grade=score>=90?'A':(score>=60?'B':'C');
cout<<score<<" "<<grade<<endl;
}
----------------解决方案--------------------------------------------------------