#include<stdio.h>
int main()
{
int a ;
printf("Enter the age of the person: ");
scanf("%d",&a);
if (a>=18)
{
printf("Eigibal for voting");
}
else
{
printf("Not eligibal for voting\n");
}
return 0;
}
C Programming
Program to check whether a person is eligible for voting or not?

Written by
View ProfileNikhil Juneja
Passionate software developer and technical contributor at TutorialsLink.
