#include #include using namespace std; int main() { int i = 2; char ch = 'y'; // while loop with two conditions while( i < 6 && (ch == 'y' || ch =='Y') ) { cout << i << " "; i = i + 1; cout << "Keep going? (y/n):"; cin >> ch; } cout << endl; // the same loop with 1 condition and a break while( i < 6 ) { cout << i << " "; i = i + 1; cout << "Keep going? (y/n):"; cin >> ch; if( ch == 'n' || ch == 'N' ) { break; } } cout << endl; // the same loop with 1 condition and a continue while( i < 6 ) { cout << i << " "; i = i + 1; cout << "Skip the BLAAA? (y/n):"; cin >> ch; if( ch == 'y' ) { continue; } cout << "BLAAA" << endl; } cout << endl; return 0; }