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

JAC Board Computer || IIT 2025 || Introductory Information Technology || Class 10 || Practical Examination 2025

Marks Division HOE 30 Marks IT Application Report File 20 Marks Viva - Voce 10 Marks 1) Write an HTML code to generate a web p...