First digit

Report a typo

Write a program that reads a combination of letters and numbers and prints the first digit in it. It is guaranteed that there is at least one digit in the combination.

Sample Input 1:

abcd37lnj

Sample Output 1:

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

Create a free account to access the full topic