Write an expression that prints "Eligible" if userAge is between 18 and 25 inclusive.
Ex: 17 prints "Ineligible", 18 prints "Eligible".
#include <iostream>
using namespace std;
int main() {
int userAge;
cin >> userAge;
if (/* Your solution goes here */) {
cout << "Eligible" << endl;
}
else {
cout << "Ineligible" << endl;
}
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments