Skip to content

Instantly share code, notes, and snippets.

@kobaken0029
Created April 21, 2016 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kobaken0029/c673d4e40c69765341afb936cf03ca0a to your computer and use it in GitHub Desktop.
Save kobaken0029/c673d4e40c69765341afb936cf03ca0a to your computer and use it in GitHub Desktop.
kotlinでワンライナーfizzbuzz
(1..100).map{println(when{it%15==0->{"fizzbuzz"}it%5==0->{"buzz"}it%3==0->{"fizz"}else->it})}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment