Skip to content

Instantly share code, notes, and snippets.

@chrisb
Last active Aug 29, 2015
Embed
What would you like to do?
FizzBuzz
(1..100).each { |i|s='';s+='Fizz'if i%3==0;s+='Buzz'if i%5==0;puts s==''?i:s }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment