Consider the code snippet below:
val a = readln().toInt()
val b = readln().toFloat()
val c = readln()
Which inputs can this code successfully read?
a)
true
5
15.5
b)
15.5
a
false
c)
kotlin
0
5
d)
kotlin
5
15.5
e)
5
15.5
trueConsider the code snippet below:
val a = readln().toInt()
val b = readln().toFloat()
val c = readln()
Which inputs can this code successfully read?
a)
true
5
15.5
b)
15.5
a
false
c)
kotlin
0
5
d)
kotlin
5
15.5
e)
5
15.5
trueCreate a free account to access the full topic