Correct the code

Report a typo

Take a look at the following Kotlin code snippet:

fun main() {
  System.out.printf(1, 2, 3...)
  printLine("Line print here ")
  lnPrint(42)
  printLn("Pay attention to ")
  println("syntax")
}

Without deleting any lines, correct the code so that you get the following output :

1, 2, 3...
Line print here 42
Pay attention to syntax

Sample Input 1:


Sample Output 1:

1, 2, 3...
Line print here 42
Pay attention to syntax
Write a program in Kotlin
fun main() {
System.out.printf(1, 2, 3...)
printLine("Line print here ")
lnPrint(42)
printLn("Pay attention to")
println("syntax")
}
___

Create a free account to access the full topic