Complete the code to print "Hello, Kotlin!" on the same line.
print([1])
The print function outputs text without adding a new line.
Complete the code to print "Hello, Kotlin!" and move to the next line.
println([1])The println function prints the text and then moves to the next line. Text must be inside double quotes.
Fix the error in the code to print "Kotlin is fun!" on a new line.
println([1])Text must be inside double quotes to be a valid string in Kotlin.
Fill both blanks to print numbers 1 to 3 on the same line separated by spaces.
print(1 + [1] + 2 + [2] + 3)
Adding a space string between numbers concatenates them with spaces.
Fill all three blanks to print "Sum: 15" on a new line using variables.
val a = 7 val b = 8 println([1] + ([2] + [3]))
Concatenate the string "Sum: " with variables a and b to print the sum.
