#include using namespace std; int main () { char choice; while(true) { cout << "Do you want to enter? (Y/N): "; cin >> choice; if(choice=='y'||choice=='Y') { cout << "Welcome!" << endl; } else break; } cout << "OK bye.." << endl; return 0; }