#include using namespace std; int main() { // Can the person enter the club. bool enter_club=false; // Does the person have id. char has_id='n'; // How old is the person. int age=0; // Ask the person if they have id. cout << "Got your ID? (Y/N): "; cin >> has_id; // If the person has ID, ask them their age. if(has_id=='y' || has_id=='Y') { cout << "Ok. You got ID...so how old are you? " << endl; cin >> age; // If the person is over 21 let them enter. if(age>=21) enter_club=true; } // If the person is able to enter the club. if(enter_club) cout << "Welcome to the club!" << endl; else cout << "Sorry, come back when you are 21." << endl; return 0; }