mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
10 lines
232 B
Kotlin
Vendored
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"
|
|
}
|