LoginSignup
0

More than 5 years have passed since last update.

CoffeeScript FizzBuzz One Liner

Posted at

どーん。

fizzbuzz=(n)->["FizzBuzz",n,n,"Fizz",n,"Buzz","Fizz",n,n,"Fizz","Buzz",n,"Fizz",n,n][n%15]

既出かどうかは調べてないです。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0