/*do_while.cpp *Demonstrates the use of a *continue if condition holds * loop. */ #include #include using namespace std; int main(){ char ans ; do { cout<< "Do you want to continue (Y/N)?\n"; cout<< "You must type a 'Y' or an 'N'.\n"; cin >> ans; } while((ans !='Y')&&(ans !='y')); }