#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();
}

100,658 total views, 94 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.

4,880 Thoughts to “C++ PROGRAM TO DEMONSTRATE IF-ELSE STATEMENT”

  1. unicomb cylinder

    […]usually posts some very fascinating stuff like this. If you are new to this site[…]

  2. Wonderful blog! Do you have any tips for aspiring writers?
    I’m hoping to start my own website soon but I’m a
    little lost on everything. Would you suggest starting with a
    free platform like WordPress or go for a paid option? There are so many options
    out there that I’m completely confused .. Any
    tips? Many thanks!

Leave a Comment