#include <iostream>
using namespace std;
int main() {
int choice = 2;
cout << "Enter a choice 1, 2, 3, or 4:";
cin >> choice;
switch (choice)
{
case 1: cout << "You entered choice 1." << endl;
break;
case 2:
case 3: cout << "You entered choice 2 or 3." << endl;
break;
case 4: cout << "You entered choice 4." << endl;
break;
default: cout << "You did not enter choice 1, 2, 3, or 4." << endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: