6 lines
105 B
Kotlin
6 lines
105 B
Kotlin
fun f(x: Int, b: Boolean): Int {
|
|
var result = x;
|
|
if (b) else result = result + 5;
|
|
return result;
|
|
}
|