C++ Program To Check Voter Is Eligible For Vote Or Not By Entering Age

C++ Program To Check Voter Is Eligible For Vote Or Not By Entering Age

//C++ Program To Check Voter Is Eligible For Vote Or Not By Entering Age
#include<iostream>

 using namespace std;

int main()
{ int age;
    cout<<"Enter The Age Of The Candidte:--";
    cin>>age;
    if(age>=18)
        cout<<"Candidate Is Eligible For Vote!!!\n";
    else
        cout<<"candidate Is Not Eligible For Vote!!!\n";
return 0;
}

Post a Comment

0 Comments