![]() |
#2
Jonny02012018-10-17 21:42
|

#include <iostream.h>
int main ()
{
int score;
int a;
cout << "Input score(0~100):;"
cin >> score;
a = score / 10;
switch(a)
{
case 10:
case 9: cout << "优" << endl; break;
case 8: cout << "良" << endl; break;
case 7: cout << "中" << endl; break;
case 6: cout << "及格" << endl; break;
case 6: cout << "不及格" << endl; break;
}
return 0;
}
只有本站会员才能查看附件,请 登录