#include using namespace std; int main() { char id; int age; cout << "Welcome to the club."; cout << "Do you have id? (Y/N)"; cin >> id; // The person has id. if(id=='y' || id=='Y') { cout << "How old are you? "; cin >> age; // They have id and are 21 or over. if(age>=21) cout << "You may enter!" << endl; // They have id, but are under 21. else if (age<21) cout << "Sorry, you must leave."; } // They don't have id. else cout << "Sorry, you must leave."; }