DIFFERENZIA

Description:

In a country named Differenzia, the minors and senior citizens are not eligible to vote. Only people aged between 18 to 60 (both inclusive) are eligible to vote. Write a program to determine a person in Differenzia is eligible to vote. Example: Sample Input 1: 60 Sample Output 1: Eligible Sample Input 2: 61 Sample Output 2: Not Eligible Sample Input 3: 17 Sample Output 3: Not Eligible Test Case 1 Input (stdin) 18 Expected Output Eligible Test Case 2 Input (stdin) 17 Expected Output Not Eligible

Program :

#include <iostream>

using namespace std;

int main()

{

int a;

  cin>>a;

  if(a>=18 && a<=60)

  cout<<"Eligible";

  else

  cout<<"Not Eligible";

return 0;

}