Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Created March 2, 2009 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save patmaddox/72613 to your computer and use it in GitHub Desktop.
Save patmaddox/72613 to your computer and use it in GitHub Desktop.
[*1..99].reverse.each do |i|
phrase = ["#{i} bottles of beer on the wall",
"#{i} bottles of beer",
"You take one down",
"You pass it around",
"#{i - 1} bottles of beer on the wall.."].join(".. ")
`say #{phrase}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment