#include<iostream.h>
void main()
{
double score=0.0;
cout<<"please input a score:"<<endl;
cin>>score;
switch((int)(score/10))
{
case 10:
cout<<"满分"<<endl;
break;
case 9:
cout<<"优秀"<<endl;
break;
case 8:
cout<<"良好"<<endl;
break;
case 7:
cout<<"一般"<<endl;
break;
case 6:
cout<<"及格"<<endl;
break;
default:
cout<<"不及格"<<endl;
}
}
void main()
{
double score=0.0;
cout<<"please input a score:"<<endl;
cin>>score;
switch((int)(score/10))
{
case 10:
cout<<"满分"<<endl;
break;
case 9:
cout<<"优秀"<<endl;
break;
case 8:
cout<<"良好"<<endl;
break;
case 7:
cout<<"一般"<<endl;
break;
case 6:
cout<<"及格"<<endl;
break;
default:
cout<<"不及格"<<endl;
}
}