The first digit of a two-digit number

Report a typo

Write a program that reads a two-digit positive number and outputs its first digit.

Sample Input 1:

42

Sample Output 1:

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

Create a free account to access the full topic