#include <iostream>
using namespace std;
int main() {
cout << "请输入您的分数:" << endl;
double score;
cin >> score; // 添加了输入分数的步骤
int grade = int(score / 10);
switch (grade) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
cout << "您的等级是差" << endl; break;
case 6:
case 7:
cout << "您的等级是中" << endl; break;
case 8:
cout << "您的等级是良" << endl; break;
case 9:
case 10:
cout << "您的等级是优" << endl; break;
default:
cout << "您的分数应该在0到100之间" << endl;
break;
}
return 0;
}