mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
13 lines
206 B
Kotlin
Vendored
13 lines
206 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
fun box(): String {
|
|
var sum = 0
|
|
for (i: Int? in 4 downTo 1) {
|
|
sum = sum * 10 + (i ?: 0)
|
|
}
|
|
assertEquals(4321, sum)
|
|
|
|
return "OK"
|
|
} |