Created
January 27, 2014 05:05
-
-
Save ba0918/8643531 to your computer and use it in GitHub Desktop.
CoffeeScriptでFizzBuzz?
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
for n in [0..100] | |
if n % 15 == 0 then console.log 'fizzbuzz' | |
else if n % 3 == 0 then console.log 'fizz' | |
else if n % 5 == 0 then console.log 'buzz' | |
else console.log n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment