/* Code lifted from book to demonstrate the use of the while loop as a control loop alternate to the for loop. */ #include using namespace std; int main( ) { int count_down; cout << "How many greetings do you want? "; cin >> count_down; while (count_down > 0) { cout << "Hello "; count_down = count_down - 1; //count_down -=count_down; } cout << endl; cout << "That's all!\n"; return 0; }