21 lines
369 B
Kotlin
21 lines
369 B
Kotlin
fun test(n: Int): String {
|
|
var res: String
|
|
|
|
if (n == 1) {
|
|
<caret>res = if (3 > 2) {
|
|
println("***")
|
|
"one"
|
|
} else {
|
|
println("***")
|
|
"???"
|
|
}
|
|
} else if (n == 2) {
|
|
println("***")
|
|
res = "two"
|
|
} else {
|
|
println("***")
|
|
res = "too many"
|
|
}
|
|
|
|
return res
|
|
} |