Posted in C Programming

Program to check whether a person is eligible for voting or not.

/* IF ELSE, Program to check whether a person is eligible for voting or not. */
#include<stdio.h>
#include<conio.h>
void main()
{
	int age;
	clrscr();
	printf("\n\n Enter Your AGE = ");
	scanf("%d",&age);
	
	if(age>=18)
	{
		printf("\n\n You are eligible for VOTING");
	}
	else
		{
		printf("\n\n You are NOT eligible for VOTING");
	}
	getch();
}

Author:

I am an Educator and YouTube Content Creator as well as a web designer and developer.

Leave a comment