Created
November 21, 2011 20:04
-
-
Save hamin/1383759 to your computer and use it in GitHub Desktop.
Ruby Golf 1 FizzBuzz (http://rubysource.com/ruby-golf/)
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
def fizzbuzz(n)n%15==0?"FizzBuzz": n%5==0?"Buzz": n%3==0?"Fizz": n.to_s end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment