A very basic question, What is the right approach to concatenate String to an Int?
I'm new in Kotlin and want to print an Integer value preceding with String and getting the following error message.
for (i in 15 downTo 10){ print(i + " "); //error: None of the following function can be called with the argument supplied: print(i); //It's Working but I need some space after the integer value. } Expected Outcome
15 14 13 12 11 10
print("$i ")when using Kotlin.