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.
Integers in action
The number of tens
Report a typo
Sample Input 1:
173Sample Output 1:
7Write a program in Kotlin
fun main() {
// put your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.