Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
refrain = ' bottles of beer'
refrain1 = ' on the wall! '
bottles = 99
bottles.downto(1) do |i|
puts i.to_s + refrain + refrain1 + i.to_s + refrain
puts 'you take one down, pass it around'
puts (i-1).to_s + refrain + refrain1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.