#include<iostream.h>
#include<conio.h>
void main()
{
int age;
clrscr();
cout<<“enter the voter age:”;
cin>>age;
if(age>=18)
{
cout<<“\n voter is eligible to vote”;
}
else
{
cout<<“\n voter is not eligible to vote”;
}
getch();
}

171,403 total views, 366 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

8,243 Thoughts to “C++ PROGRAM TO DEMONSTRATE IF-ELSE STATEMENT”

  1. It is actually a great and useful piece of information. I am happy that you shared this useful
    information with us. Please stay us up to date like this. Thank you for sharing.

Leave a Comment