#include<iostream>
using namespace std;
int main()
{
int num = 0;
cout << "please input num" << endl;
cin >> num;
switch (num)
{
case 1:
cout << "excellent" << endl;
break;
case 2:
cout << "good" << endl;
break;
case 3:
cout << "pass" << endl;
break;
case 4:
cout << "fail" << endl;
break;
}
return 0;
}
编写程序,实现功能;从键盘输入1.2.3.4,分别显示excellent、good、pass、fail。
最新推荐文章于 2024-08-28 14:35:43 发布