Middle three digits: Difference between revisions
Content deleted Content added
Line 2,714:
=={{header|Kotlin}}==
<lang kotlin>
val s = Math.abs(x).toString()
return when {
s.length < 3 ->
s.length % 2 == 0 ->
else ->
}
}
fun main(args: Array<String>) {
println(middleThree(12345)) // 234▼
println(middleThree(
println(middleThree(
println(middleThree(
println(middleThree(
}
</lang>
=={{header|Lasso}}==
|