Skip to content

Commit c637d6a

Browse files
added tutorial 9 cpp file from local machine
1 parent 8ab42be commit c637d6a

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

tut9.cpp

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
}

0 commit comments

Comments
 (0)