Digits or not

Report a typo

Write a program that reads four characters and checks for each character whether it is a digit.

The program must print either true or false for each character in a new line.

Sample Input 1:

3
@
8
d

Sample Output 1:

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

Create a free account to access the full topic