home
clear breadcrumbs
search
login
 
switch case
#include
using namespace std; void main() { int selection{}; cout << "Please enter a number between 0 and 3" << endl; cin >> selection; switch (selection) { case 1: cout << "You entered 1"; break; case 2: cout << "You entered 2"; break; default: cout << "WTF, I see you can't follow directions..."; } }