Files
kotlin/compiler/testData/codegen/box/controlStructures/bottles.kt
2014-12-29 19:32:09 +03:00

10 lines
232 B
Kotlin
Vendored

fun box(): String {
var bottles = 99
while (bottles > 0) {
// System.out.println("bottles of beer on the wall");
bottles -= 1
bottles--
}
return if (bottles == -1) "OK" else "Fail $bottles"
}