Program:
#include<stdio.h>
int main()
{
int age;
printf("Enter your age\n");
scanf("%d",&age);
if(age>=18)
{
printf("You are eligible for voting");
}
else
{
printf("You are not eligible for voting");
}
}
Output:Related Links: