Middle three digits: Difference between revisions

Content added Content deleted
Line 2,714: Line 2,714:


=={{header|Kotlin}}==
=={{header|Kotlin}}==
<lang kotlin>
<lang scala>
fun middleThree(x: Int): Int? {
fun middleThree(x: Int): Int? {
val s = Math.abs(x).toString()
val s = Math.abs(x).toString()