Monday, August 2, 2021

C++ Program to find Eligible for Vote or Not Eligible for Vote

C++ Program to find Eligible for Vote or Not  Eligible for Vote

#include<iostream.h>

#include<conio.h>

void main()

{

int age;

 clrscr();

 cout<<"\nEnter age of any person ";

 cin>>age;

 if(age>=18)

  {

   cout<<"\n Eligible for Vote";

  }

  else

  {

   cout<<"\n Not Eligible for Vote";

  }

 getch();

}

 

   

No comments:

Post a Comment

Internet Security

₪ Internet security Internet security protects your devices, networks, and personal data from online threats like viruses, hackers, and p...