Last active
August 29, 2015 14:15
-
-
Save SolomonHD/b43cc1b428c92a65bd91 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
def fizzbuzz(fizzbuzz) | |
if fizzbuzz % 3 == 0 && fizzbuzz % 5 == 0 && fizzbuzz > 0 | |
return "FizzBuzz" | |
elsif fizzbuzz % 3 == 0 | |
return "Fizz" | |
elsif fizzbuzz % 5 == 0 | |
return "Buzz" | |
else | |
return fizzbuzz | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment