Menu

C++ Project

#include <iostream>

using namespace std;

int main()
{
int beverage;

cout << "Choose the best beverage according to you by typing in their NUMBER" << endl << endl;
cout << "Coca cola (1)" << endl;
cout << "Fanta (2)" << endl;
cout << "Sprite (3)" << endl;
cout << "7 Up (4)" << endl;
cout << "Pepsi (5)" << endl << endl;

cin >> beverage;

switch(beverage)
{
case 1:
cout << endl << "Good choice! Btw pepsi better" << endl;
break;
case 2:
cout << endl << "Fanta is acceptable." << endl;
break;
case 3:
cout << endl << "Can we be friends?" << endl;
break;
case 4:
cout << endl << "Do not ever open this program again, we are enemies now!" << endl;
break;
case 5:
cout << endl << "You know what real coke is!" << endl;
break;
default:
cout << "You typed in something invalid/text, restart the program please!";
break;
}
return 0;
}