Write a program that reads a two-digit positive number and outputs its first digit.
Integers in action
The first digit of a two-digit number
Report a typo
Sample Input 1:
42Sample Output 1:
4Write 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.