Jan 14, 2016 22:48
#include
#include
using namespace std;
int main()
{
int bottles = 99;
for (int i = 0; i < 99; i++)
{
cout << bottles << " bottles of beer on the wall, " << bottles << " bottles of beer." << endl;
bottles--;
cout << "Take one down, pass it around, " << bottles << " bottles of beer on the wall...." << endl;
}
cout << "No more bottles of beer on the wall, no more bottles of beer." << endl;
cout << "Go to the store and buy some more, 99 bottles of beer on the wall..." << endl;
return 0;
}
99 bottles,
cpp,
c++,
programming,
study