Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. fun main(args: Array<String>) {
  2. for (i in 1..100) {
  3. println(if (i % 15 == 0) "FizzBuzz" else if (i % 3 == 0) "Fizz" else if (i % 5 == 0) "Buzz" else i)
  4. }
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement