Skip to content

Instantly share code, notes, and snippets.

@kylekeesling
Created November 10, 2015 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylekeesling/e70e9c69eb87c42ed99f to your computer and use it in GitHub Desktop.
Save kylekeesling/e70e9c69eb87c42ed99f to your computer and use it in GitHub Desktop.
99 Bottles of Beer...
num_bottles = 99
while num_bottles > 0
puts "#{num_bottles} bottles of beer on the wall,
#{num_bottles} bottles of beer, take one down, pass it
around, #{num_bottles - 1} bottles of beer on the wall!"
num_bottles = num_bottles - 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment