7 lines
133 B
Kotlin
Vendored
7 lines
133 B
Kotlin
Vendored
fun a(x: Int) {
|
|
val t = when {
|
|
x > 0 -> <selection>x * x</selection> + 1
|
|
x < 0 -> x + x
|
|
else -> 0
|
|
}
|
|
} |