Write a program in C++ to check whether a given person is eligible to vote or not?
Answers
Answered by
9
#include
int main ()
{
int age;
cout << "Enter your age =";
cin >> age;
if (age >= 18)
cout << " Eligible to vote";
return 0;
}
Similar questions