Skip to content

Instantly share code, notes, and snippets.

@pelargir
Created August 14, 2010 22:50
Show Gist options
  • Save pelargir/524799 to your computer and use it in GitHub Desktop.
Save pelargir/524799 to your computer and use it in GitHub Desktop.
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