mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
224 B
Plaintext
13 lines
224 B
Plaintext
fun box() : String {
|
|
val a = arrayOfNulls<String>(3)
|
|
a[0] = "a"
|
|
a[1] = "b"
|
|
a[2] = "c"
|
|
|
|
var result = 0
|
|
for(i in a.indices) {
|
|
result += i
|
|
}
|
|
if (result != 3) return "FAIL"
|
|
return "OK"
|
|
} |