-
-
Save d0ppler/a01bc0ad887f11ca4653 to your computer and use it in GitHub Desktop.
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
(1..100).each { |i| | |
x = '' | |
x +='Fizz' if i%3==0 | |
x +='Buzz' if i%5==0 | |
puts(x.empty? ? i :x) # whats this: ? i :x | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment