mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
9 lines
197 B
Kotlin
Vendored
9 lines
197 B
Kotlin
Vendored
fun stringConcat(n : Int) : String? {
|
|
var string : String? = ""
|
|
for (i in 0..(n - 1))
|
|
string += "LOL "
|
|
return string
|
|
}
|
|
|
|
fun box() = if(stringConcat(3) == "LOL LOL LOL ") "OK" else "fail"
|