Fix the input

Report a typo

Suppose you need to read the Int value into the variable n. Correct the code below.

Write a program in Kotlin
fun main() {
val n: Int = readln()
if (n !is Int) {
println("Wrong Type")
}
println(n)
}
___

Create a free account to access the full topic