Four numbers

Report a typo

Write a program that reads four integer numbers from one line and prints them each on a new line. Input numbers should be separated by one or more spaces.

Use nextInt() to read numbers ignoring extra spaces.

Sample Input 1:

101    102 103  104

Sample Output 1:

101
102
103
104
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