-
Notifications
You must be signed in to change notification settings - Fork 765
/
Copy pathgassbooking
83 lines (64 loc) · 2.45 KB
/
gassbooking
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
79
80
81
82
83
#include<stdio.h>
#include<string.h>
#include<conio.h>
#include<windows.h>
void data(){
int press;
int id;
char name[50];
printf("\nThank you for comming :-)");
printf("\nEnter your valid id number: ");
scanf("%d",&id);
fflush(stdin);
printf("\nEnter your name: ");
gets(name);
printf("\n1.LPG big cylinders\n2.LPG mini cylinders\n3.acetylin cylinders\ndefault.cancel your orders");
printf("\nEnter your choice:");
scanf("%d",&press);
switch(press){
case 1:
printf("----------------------------------------------------------------------------------");
printf("\nLpg big cylinders");
printf("\nyour choice lpg big cylinders\n");
printf("Your id %d\n",id);
printf("your name: ");
puts(name);
printf("\nyour order is sucessful\nyour gas delivary within 24 days\n");
printf("----------------------------------------------------------------------------------");
break;
case 2:
printf("----------------------------------------------------------------------------------");
printf("\nLpg mini cylinders");
printf("\nyour choice mini cylinders\n");
printf("Your id %d\n",id);
printf("your name: ");
puts(name);
printf("\nyour order is sucessful\nyour gas delivary within 24 days\n");
printf("----------------------------------------------------------------------------------");
break;
case 3:
printf("----------------------------------------------------------------------------------");
printf("\nacetylin cylinders");
printf("\nyour choice acetylin cylinders\n");
printf("Your id %d\n",id);
printf("your name: ");
puts(name);
printf("\nyour order is sucessful \n your gas delivary within 24 days\n");
printf("----------------------------------------------------------------------------------");
break;
default:
printf("----------------------------------------------------------------------------------");
printf("\ncancel your order ");
printf("\nyour order with name and id cancel sucessfully\n");
printf("----------------------------------------------------------------------------------");
}
}
int main()
{
char choice = 'y';
data();
printf("\n\nyou want to continue yes or no\nif yes press y or no press n:");
choice = getche();
}while(choice == 'y');
return 0;
}