A capital letter or a digit Open on JetBrains Academy
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
.
If the input character is
'0'
, the program prints
false
Sample Input:
A
Sample Output:
true
Memory limit: 256 MB
Time limit: 8 seconds
Show topic summary