Created
December 11, 2014 13:05
-
-
Save suzukaze/e563526d9809ba9a1acb to your computer and use it in GitHub Desktop.
fizzbuzz.steem
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
seq(100) | {|x| | |
if x % 15 == 0 { | |
"FizzBuzz" | |
} | |
else if x % 3 == 0 { | |
"Fizz" | |
} | |
else if x % 5 == 0 { | |
"Buzz" | |
} | |
else { | |
x | |
} | |
} | STDOUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment