// File: bottles.cxx // Written by Michael Main (Jan 20, 2003) // This is a first example of a program with a loop. #include using namespace std; int main( ) { int bottles = 99; while (bottles > 0) { cout << bottles << " bottles of Kool-Aid on the wall," << endl; cout << bottles << " bottles of Kool-Aid." << endl; cout << "You take one down, pass it around," << endl; bottles--; cout << bottles << " bottles of Kool-Aid on the wall." << endl; } return 0; }