Middle three digits: Difference between revisions
Content deleted Content added
Line 2,714:
=={{header|Kotlin}}==
<lang scala>fun middleThree(x: Int): Int? {
val s = Math.abs(x).toString()
return when {
Line 2,730 ⟶ 2,729:
println(middleThree(123))// 123
println(middleThree(123555)) //null
}</lang>▼
▲</lang>
=={{header|Lasso}}==
|