mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
15 lines
226 B
Kotlin
Vendored
15 lines
226 B
Kotlin
Vendored
fun box() : String {
|
|
val a = IntArray (5)
|
|
var i = 0
|
|
var sum = 0
|
|
for(el in 0..4) {
|
|
a[i] = i++
|
|
}
|
|
for (el in a) {
|
|
sum = sum + el
|
|
}
|
|
if(sum != 10) return "a failed"
|
|
|
|
return "OK"
|
|
}
|