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.
Standard input with Java Scanner
Read and print
Report a typo
Sample Input 1:
Hello
Kotlin
500 600Sample Output 1:
Hello
Kotlin
500
600Write a program in Kotlin
import java.util.Scanner
fun main() {
val scanner = Scanner(System.`in`)
// put your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.