Skip to content

Instantly share code, notes, and snippets.

@suzukaze
Created December 11, 2014 13:05
Show Gist options
  • Save suzukaze/e563526d9809ba9a1acb to your computer and use it in GitHub Desktop.
Save suzukaze/e563526d9809ba9a1acb to your computer and use it in GitHub Desktop.
fizzbuzz.steem
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