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!: JAC Board Computer Examination Sample Questions Hi...

Programmingway@Eklavya Technosys!: JAC Board Computer Examination Sample Questions Hi... : 1) Which of the following is NOT a web service? (...