Created
March 3, 2018 03:48
-
-
Save kat-perreira/2273fdc65a60bffcce8ad0c3eb23952b to your computer and use it in GitHub Desktop.
99 Berties Botts Beans in a bag created by kaimana_Cat - https://repl.it/@kaimana_Cat/99-Berties-Botts-Beans-in-a-bag
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
=begin | |
write a program that prints lyrics to 99 bottles of beer on the wall | |
Make it Harry Potter Themed | |
=end | |
99.downto(0) { |n| puts n, " Berties Botts Beans in a bag, " | |
puts n, " Berties Botts Beans! Take one down, try not to gag, " | |
if n ==0 | |
puts "No more Berties Botts Beans in a bag!" | |
end | |
} | |
puts "You survied the Bertie Botts Beans Challenge" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment