void main() {
char choices;
cout<<"Choose from the list:";
cout<<"(a)Chicken with rice:P42.00";
cout<<"(b)Porkasado with chowrice:P68.00";
cout<<"(c)Beefsteak,rice with coke:P120.00";
cout<<"what will be your order? (enter letter only):";
cin>>choices;
switch (choices) {
case 'a':
cout<<"Good Choice!";
break;
case 'b':
cout<<"Very nice!";
break;
case 'c':
cout<<"That's great!";
break;
default:
cout<< "Please enter correct code!";
}
cout<<"Thank you for ordering!";
return; }
No comments:
Post a Comment