C Program to Check if Candidate is Eligible for Driving Licence

C Program to Check if Candidate is Eligible for Driving Licence

Write C Program to Check if the Candidate is Eligible for a Driving Licence

//WAP to scan the age of the person and check whether he/she is eligible for the driving license or not

#include <stdio.h>

int main()
{
	int Age;

	printf("Enter the Age  :--> ");
	scanf("%d", &Age);

	if(Age > 18)
	{
		printf("The person is eligible for driving license ");
	}
	else
	{
		printf("The person is not eligible for driving license");
	}

	return 0;

}

Output:

Run 1:
Enter the Age  :--> 17
The person is not eligible for driving license

Run 2:
Enter the Age  :--> 19
The person is  eligible for driving license