-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCP1SWITC.C
More file actions
62 lines (56 loc) · 1.27 KB
/
CP1SWITC.C
File metadata and controls
62 lines (56 loc) · 1.27 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*DOCUMENTATION SECTION
WAP TO SHOW DEMO OF switch case STATEMENT
*/
#include <stdio.h>
#include <conio.h>
void main()
{
int choice;
int choicem;
clrscr();
printf("\n WHAT YOU WOULD LIKE TO DO TODAY:\n");
printf("1.WATCH MOVIE:\n");
printf("2.PLAY GAMES:\n");
printf("3.VISIT ZOO:\n");
printf("4.GO TO DINNER:\n");
printf("5.GO SHOPPING:\n");
printf("6.DO NOTHING:\n");
scanf("%d",&choice);
switch(choice)
{
case 1:
printf("\n YOU SELECTED TO WATCH MOVIE");
printf("\nPLEASE SELECT YOUR MOVIE:");
printf("\nPLEASE SELECT YOUR MOVIE:");
printf("\n1. AAVTAR:");
printf("\n2. ARMAGEDON:");
scanf("%d",&choicem);
switch(choicem)
{
case 1:
printf("\n YOU SELECTED AAVTAR MOVIE");
break;
}
break;
case 2:
printf("\n YOU SELECTED TO PLAY GAMES");
break;
case 3:
printf("\n YOU SELECTED TO VISIT ZOO");
break;
case 4:
printf("\n YOU SELECTED TO GO TO DINNER");
break;
case 5:
printf("\n YOU SELECTED TO DO SHOPING");
break;
case 6:
printf("\n YOU SELECTED TO DO NOTHING");
break;
default:
printf("\n YOUR CHOICE IS SAME AS CHOICE NO 6:");
printf("\n BYE");
}
printf("\nEXIT FROM SWITCH CASE");
getch();
}