A capital letter or a digit

Report a typo

Write a program that reads a character and checks if it is a capital letter or a digit from 1 to 9.

The program must print either true or false.

Sample Input 1:

A

Sample Output 1:

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

Create a free account to access the full topic