Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*============================================================================
- ----------------------------------------------------------------------------
- 99_bottles.cpp - 99 Bottles of Beer Lyrics.
- (c) Damion 'Phr0z3n.dev' Tapper, 2013.
- Email: Phr0z3n.Dev@Gmail.com
- ----------------------------------------------------------------------------
- ============================================================================*/
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << ">>------------------> 99 Bottles Of Beer Lyrics <------------------<<" << endl << endl;
- for(int bottles_of_beer = 99; bottles_of_beer > 0; bottles_of_beer--)
- {
- cout << bottles_of_beer << " bottle";
- if(bottles_of_beer != 1)
- cout << "s";
- cout <<" of beer on the wall, " << bottles_of_beer << " bottle";
- if(bottles_of_beer != 1)
- cout << "s";
- cout << " of beer." << endl;
- cout << "Take one down and pass it around, ";
- if((bottles_of_beer - 1) != 0)
- cout << bottles_of_beer - 1;
- else
- cout << "no more";
- cout << " bottle";
- if((bottles_of_beer - 1) != 1)
- cout << "s";
- cout << " of beer on the wall." << endl << 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.";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement