-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCODE3.cpp
More file actions
44 lines (38 loc) · 1.05 KB
/
CODE3.cpp
File metadata and controls
44 lines (38 loc) · 1.05 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
#include<iostream>
using namespace std;
//*******IF else statement with switch case***************//
int main()
{
int age_voter;
cout<<"enter your age for apply voter id card"<<endl;
cin>>age_voter;
int limt=18;
if ((age_voter>limt) && (age_voter>5))
{
cout<<"you are eligable for voter id card"<<endl;
}
else if(age_voter==18)
{
cout<<"you are eligable for this but with temp"<<endl; ///////////&& in if or function in else if or mirror sing
}
else if(age_voter<5)
{
cout<<"your are too small"<<endl;
}
else
{
cout<<"you are not eligable";
}
int age_value;
/* switch (age_value)
{
case 18:
cout<<"yes you will come";
break;
case 2:
cout<<
default:
break;
} */
return 0;
}