A C program to find the person is eligible for voting or not.

// A program to find the person is eligible for voting or not.

#include
#include
void main()
{
   int age;
   printf("Enter your age:");
   scanf("%d",&age);
   if(age >=18) 
   printf("You are eligible for voting"); 
   else
   printf("You are not eligible for voting");
   getch();
}
Output:


Post a Comment

0 Comments