Created
May 23, 2020 05:27
-
-
Save airbr/0aa50b54cfd52465d553e3c049f79717 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 |bottles| | |
puts "#{bottles} bottle#{"s" if bottles != 1} of beer on the wall.", | |
"#{bottles} bottle#{"s" if bottles != 1} of beer.", | |
"Take one down, pass it around.", | |
"#{bottles - 1} bottle#{"s" if bottles - 1 != 1} of beer on the wall.\n\n" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment