-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut9.cpp
More file actions
50 lines (44 loc) · 1.02 KB
/
Copy pathtut9.cpp
File metadata and controls
50 lines (44 loc) · 1.02 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
#include <iostream>
using namespace std;
// int main()
// {
// int age ;
// cout<<"Enter your age"<<endl;
// cin>>age;
// if((age<18) && (age>0)){
// cout<<"You can not come to the party"<<endl;
// }
// else if (age==18){
// cout<<"You can come to the party with teen pass"<<endl;
// }
// else if (age<1){
// cout<<"You are not born at yet"<<endl;
// }
// else {
// cout<<"You can come to the party"<<endl;
// }
// return 0 ;
// }
// Selection control structure : Switch case Statement
// int main()
// {
// int age;
// cout << "Enter your age" << endl;
// cin >> age;
// switch (age)
// {
// case 18:
// cout << "You are 18 "<<endl;
// break;
// case 22:
// cout << "You are 22 "<<endl;
// break;
// case 1:
// cout << "You are 1"<<endl;
// break;
// default:
// cout << "No special cases"<<endl;
// break;
// }
// cout<<"Done with switch case.";
// }