Comparing numbers and characters

Report a typo

Write a program that reads one number and one character on separate lines and checks whether the entered number corresponds to the decimal representation of the character in the Unicode table.

If the input character is represented by the input number, print true; otherwise, print false.

Sample Input 1:

97
a

Sample Output 1:

true

Sample Input 2:

97
C

Sample Output 2:

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

Create a free account to access the full topic