Skip to content

Instantly share code, notes, and snippets.

@ngsw-taro
Created October 10, 2011 05:09
Show Gist options
  • Save ngsw-taro/1274669 to your computer and use it in GitHub Desktop.
Save ngsw-taro/1274669 to your computer and use it in GitHub Desktop.
FizzBuzz
for(i in 1..100)println(((a=i%3)?"":"Fizz")+(i%5?(a?i:""):"Buzz"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment