File tree 1 file changed +45
-0
lines changed 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ #include < iostream>
2
+ using namespace std ;
3
+
4
+ int main ()
5
+ {
6
+ // ********Selection Control Structure If - else statements********
7
+
8
+ // int age;
9
+ // cin >> age;
10
+
11
+ // if (age < 18)
12
+ // {
13
+ // cout << "You cannot come to my party" << endl;
14
+ // }
15
+ // else if (age > 18)
16
+ // {
17
+ // cout << "You can come to my party" << endl;
18
+ // }
19
+ // else
20
+ // {
21
+ // cout << "Kids pass is required" << endl;
22
+ // }
23
+
24
+ // ********Selection Control Structure: Switch statements********
25
+ // switch (age)
26
+ // {
27
+ // case 18:
28
+ // cout<<"You are of 18 age"<<endl;
29
+ // break;
30
+ // case 19:
31
+ // cout<<"You are of 19 age"<<endl;
32
+ // break;
33
+ // case 20:
34
+ // cout<<"You are of 20 age"<<endl;
35
+ // break;
36
+ // case 21:
37
+ // cout<<"You are of 21 age"<<endl;
38
+ // break;
39
+
40
+ // default:
41
+ // break;
42
+ // }
43
+
44
+ return 0 ;
45
+ }
You can’t perform that action at this time.
0 commit comments