<Kotlin: the number of tens> The description below...
# stackoverflow
u
Kotlin: the number of tens The description below is taken directly from the task I'm trying to solve. Apparently there are 4 tests that the program runs, but I don't know which inputs will be tested, so I'm trying to account for all of them. Write a program that reads a number and prints the tens in that number. Use indexes to solve this problem! Sample Input: 234 Sample Output: 3 I came up with this code: fun main() { val string = readLine()!! val digits = string.map(Character::getNumericValue).toIntArray()...