Thursday, June 3, 2021

C++ program check you are eligible for vote casting or not (POP) (102)

#include<iostream>

using namespace std;

int main()

{

int age;

cout<<"please enter you age:";

cin>>age;

if(age>=18)

{

cout<<"you are eligible for casting vote";

}

else

{

cout<<"you are not eligible for casting vote";

}

return 0;

} 

No comments:

Post a Comment