The number of tens

Report a typo

There is a non-negative integer N (0 ≤ N ≤ 1000000). Find the number of tens in it (next to the last digit of the number). If there is only one digit, you can consider that the number of tens equals zero.

Sample Input 1:

173

Sample Output 1:

7
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic