Read and print

Report a typo

Write a program that reads two lines and then two numbers from one line and outputs them in the same order, each on a new line.

Sample Input 1:

Hello
Kotlin
500 600

Sample Output 1:

Hello
Kotlin
500
600
Write a program in Kotlin
import java.util.Scanner

fun main() {
val scanner = Scanner(System.`in`)
// put your code here
}
___

Create a free account to access the full topic