Created
April 15, 2009 09:55
-
-
Save liquidz/95706 to your computer and use it in GitHub Desktop.
244byte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b=proc{|n,w|"#{n<1?'no more':n} bottle#{'s'if n!=1} of beer#{' on the wall'if w}"} | |
99.downto(0){|i|puts"#{b[i,0].capitalize}, #{b[i,p]}.\n#{i>0?'Take one down and pass it around, '+b[i-1,0]:'Go to the store and buy some more, '+b[99,0]}.\n\n"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment