Fix compile-time errors

Report a typo

Given a program that reads two lines and outputs them in another order.

Now the program cannot compile.

Fix all compile-time errors as well as logic errors.

Sample Input 1:

Hello,
Kotlin!

Sample Output 1:

Kotlin!
Hello,
Write a program in Kotlin
fun main() {
val line1 = nextLine()
val line2 = nextLine()

println(line1)
println(line2)
}
___

Create a free account to access the full topic