Created
November 10, 2015 20:06
-
-
Save kylekeesling/e70e9c69eb87c42ed99f to your computer and use it in GitHub Desktop.
99 Bottles of Beer...
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
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