99 Bottles


Description


Print the words to the "99 bottles" song in a for loop.


99 bottles of beer on the wall, 99 bottles of beer.
Take one down and pass it around, 98 bottles of beer on the wall.
98 bottles of beer on the wall, 98 bottles of beer.
Take one down and pass it around, 97 bottles of beer on the wall.
...
1 bottle of beer on the wall, 1 bottle of beer.
Take one down and pass it around, no more bottles of beer on the wall.
No more bottles of beer on the wall, no more bottles of beer.
Go to the store and buy some more, 99 bottles of beer on the wall.

Instructions


  1. Find the 99 Bottles recipe program ( bottles.pde ) and open it using Processing.
  2. You can find help for printing the lyrics to this song here.
  3. Do not repeat any of the lyrics in your code - use a for loop!
  4. Look out for the changes you will need to make to the lyrics when you get down to 1 or zero bottles.