-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.c
More file actions
48 lines (44 loc) · 1.18 KB
/
Copy pathExample.c
File metadata and controls
48 lines (44 loc) · 1.18 KB
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
48
#include <stdio.h>
int main(){
printf(" Welcome to our cafe \n");
printf("Kindly select your order\n");
printf("-----------------------------------------\n");
printf("01.pizza\n02.Burger\n03.Cold Drinks\n04.Chilli Potato\n05.Noodles\n");
int Item;
printf("Please select your food item from (01-05):");
scanf("%d , &Item");
switch (Item){
case 01:printf("Pizza\n");
break;
case 02:printf("Burger\n");
break;
case 03:printf("Cold Drink\n");
break;
case 04:printf("Chilli Potato\n");
break;
case 05:printf("Noodles\n");
break;
case 06:printf("No more food items");
break;
default:printf("Food is not in our menu:");
}
printf("-------------------------------------\n");
printf("If you want more food please select or press 6 to exit:");
scanf("%d , &Item");
switch (Item){
case 01:printf("Pizza\n");
break;
case 02:printf("Burger\n");
break;
case 03:printf("Cold Drink\n");
break;
case 04:printf("Chilli Potato\n");
break;
case 05:printf("Noodles\n");
break;
case 06:printf("No more food items");
break;
default:printf("Food is not in our menu:");
}
return 0;
}