Created
February 9, 2010 15:10
-
-
Save locks/299294 to your computer and use it in GitHub Desktop.
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
99.downto 1 do|x|puts (y=x.to_s+a=" bottle#{"s" if x!=1} of beer")+(b=" on the wall")+", "+y+".",x==1?"Go to the store and buy some more, 99 bottles of beer#{b}.":"Take one down and pass it around, #{x-1}#{x==2?a.gsub("s",""):a}#{b}. | |
"end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment