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

Programmingway@Eklavya Technosys!: Class - 7 A or B | Computer | 100 Questions!

Programmingway@Eklavya Technosys!: Class - 7 A or B | Computer | 100 Questions! :  1) What is digital citizenship? 2) What is a digital citi...