Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (1..199).map{ Triple(it % 3 == 0, it % 5 == 0, it)}.forEach{println(if(!it.first && !it.second) it.third else (if (it.first) "Fizz" else "") + if (it.second) "Buzz" else "")}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement