Here is the code that uses the Scanner class:
val scanner = Scanner(System.`in`)
val s1 = scanner.nextLine()
val s2 = scanner.nextLine()
val num = scanner.nextInt()Which input suits this snippet? After reading the input each variable must have a value.
a)
abc def
123b)
abc
def 123c)
1000
abc
3d)
abc def 123