C++ Program to check if Candidate is Eligible for Driving Licence

Write C++ Program to check if Candidate is Eligible for Driving Licence

// CPP Program to check if Candidate is Eligible for Driving Licence

#include <iostream>

using namespace std;

int main()
{
	int Age;

	cout << "Enter the Age  :--> ";
	cin >> Age;

	if(Age > 18)
	{
		cout << "The person is eligible for driving license ";
	}
	else
	{
		cout << "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

≪ Previous | Next ≫