Professional Documents
Culture Documents
Program:
#include <iostream>
using namespace std;
main () {
int age;
cout << "Input your age: " ;
cin >> age;
} else {
cout << "He is a teenager " ;
if (age<21) {
cout <<"and he is not eligible for marriage.";
} else {
cout <<"and he is eligible." << endl;
}
}
return 0;
}