-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtut9.cpp
45 lines (39 loc) · 960 Bytes
/
tut9.cpp
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
#include <iostream>
using namespace std;
int main()
{
//********Selection Control Structure If - else statements********
// int age;
// cin >> age;
// if (age < 18)
// {
// cout << "You cannot come to my party" << endl;
// }
// else if (age > 18)
// {
// cout << "You can come to my party" << endl;
// }
// else
// {
// cout << "Kids pass is required" << endl;
// }
//********Selection Control Structure: Switch statements********
// switch (age)
// {
// case 18:
// cout<<"You are of 18 age"<<endl;
// break;
// case 19:
// cout<<"You are of 19 age"<<endl;
// break;
// case 20:
// cout<<"You are of 20 age"<<endl;
// break;
// case 21:
// cout<<"You are of 21 age"<<endl;
// break;
// default:
// break;
// }
return 0;
}