mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
21 lines
357 B
Kotlin
21 lines
357 B
Kotlin
fun test(n: Int): String {
|
|
var res: String
|
|
|
|
<caret>res = if (n == 1) {
|
|
if (3 > 2) {
|
|
println("***")
|
|
"one"
|
|
} else {
|
|
println("***")
|
|
"???"
|
|
}
|
|
} else if (n == 2) {
|
|
println("***")
|
|
"two"
|
|
} else {
|
|
println("***")
|
|
"too many"
|
|
}
|
|
|
|
return res
|
|
} |