-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShoppingListApp.c
78 lines (59 loc) · 1.51 KB
/
ShoppingListApp.c
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <time.h>
/*
Shopping List App
1- Print the list of products on screen
2- Print the products that user selected, their prices & their total price
*/
int userChoice;
void funcSpace(){
printf("\n");
}
void funcCharSpace(){
printf("\n--------");
}
int main()
{
while (userChoice != 20){
srand(time(0));
printf("\t\t\t\t==========*Welcome To Shopping List App*==========");
funcSpace();
printf("\nA.FOODS");
funcCharSpace();
printf("\n1.Chicken");
printf("\n2.Rice");
printf("\n3.Meat");
printf("\n4.Spaghetti");
printf("\n5.Soap");
funcSpace();
printf("\nB.SALADS");
funcCharSpace();
printf("\n6.Salad 1");
printf("\n7.Salad 2");
printf("\n8.Salad 3");
printf("\n9.Salad 4");
printf("\n10.Salad 5");
funcSpace();
printf("\nC.DRINKS");
funcCharSpace();
printf("\n11.Cola");
printf("\n12.Cola Zero");
printf("\n13.Fanta");
printf("\n14.Sprite");
printf("\n15.Ayran");
funcSpace();
printf("\nD.DESSERTS");
funcCharSpace();
printf("\n16.Baklava");
printf("\n17.Sutlac");
printf("\n18.Ýzmir Bomb");
printf("\n19.Tulumba");
printf("\n20.Lokum");
funcSpace();
printf("\nPlease select the option: ");
scanf("%d", &userChoice);
}
return 0;
}