24 lines
455 B
Kotlin
24 lines
455 B
Kotlin
fun main(args : Array<String>) {
|
|
for (i in 1..100) {
|
|
when {
|
|
i%3 == 0 -> {print("Fizz"); continue;}
|
|
i%5 == 0 -> {print("Buzz"); continue;}
|
|
|
|
(i%3 != 0 && i%5 != 0) -> {print(i); <selection>continue;}<caret></selection>
|
|
else -> println()
|
|
}
|
|
}
|
|
}
|
|
|
|
fun foo() : Unit {
|
|
println() {
|
|
println()
|
|
|
|
|
|
println()
|
|
println()
|
|
}
|
|
|
|
println(array(1, 2, 3))
|
|
println()
|
|
} |