Q:

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

0

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

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#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;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now