Chris C
05/19/2022, 7:44 PMfun main() {
val first = readln()
val second = readln()
println("[$first] [$second]")
}
and this input
1
2
I’m getting this output
[1] []
I would expect
[1] [2]
Or?nkiesel
05/19/2022, 8:03 PM[1] [2]
is what you should get (and what I get when running your code). Double-check your input for hidden chars (od -c
).Chris C
05/19/2022, 8:18 PMjava …
it worksChris C
05/19/2022, 8:31 PMilya.gorbunov
05/20/2022, 12:41 AMChris C
05/20/2022, 7:25 AM