Created
August 14, 2010 22:50
-
-
Save pelargir/524799 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
numbers = (0..99).to_a | |
while numbers.any? do | |
i = numbers.pop | |
`say "#{i} cans of coke in the fridge"` | |
`say "#{i} cans of coke"` | |
`say "take one out, pass it around"` | |
`say "#{i - 1} cans of coke in the fridge"` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment