-
Notifications
You must be signed in to change notification settings - Fork 0
/
Assignment4.cpp
47 lines (33 loc) · 1011 Bytes
/
Assignment4.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
int ch;
char choice;
cout<<"Menu Driven Program\n";
do {
cout<<"Plz enter your choice:"<<"\n1.Coffee\n"<<"2.Tea\n";
cin>>ch;
if (ch == 1)
{
cout<<"*****Plz Enjoy your Coffee*****\n";
}
else if (ch == 2)
{
cout<<"*****Plz Enjoy your Tea*****\n\n";
}
else
{
cout << "Wrong Input";
}
cout<<"*****If you want to continue plz enter the choice again (Y/N):***** \n";
cin >> choice;
} while (choice == 'Y' || choice == 'y');
cout << "Don't want to enter again";
return 0;
}