Character game

Report a typo

We introduced a new game: the user enters a character, its Int representation and a Boolean marking if this character is upper case or not. The program checks if the input is correct. Finish the program!

Sample Input 1:

a
97
false

Sample Output 1:

true
Write a program in Scala 3
object CharacterGame extends App {
val triple = (
scala.io.StdIn.readChar(),
scala.io.StdIn.readInt(),
scala.io.StdIn.readBoolean()
)
val expected = (
???,
???.toInt,
???.isUpper
)
println(triple == expected)
}
___

Create a free account to access the full topic