#include using namespace std;
int main() {
int age;
cout << "\n Enter age of a user:";
cin>>age;
if (age >= 18) {
cout << "\n You are eligible for voting";
} else {
cout << "\n You are not eligible for voting";
}
return 0;
}
#include using namespace std;
int main() {
int age;
cout << "\n Enter age of a user:";
cin>>age;
if (age >= 18) {
cout << "\n You are eligible for voting";
} else {
cout << "\n You are not eligible for voting";
}
return 0;
}