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