The following code snippet contains errors. Find and correct them so that the final result will be the output of the following line:
"Kotlin is a cross-platform, statically typed, general-purpose programming language with type coercion."
Data types
Edit it
Report a typo
Sample Input 1:
Sample Output 1:
Kotlin is a cross-platform, statically typed, general-purpose programming language with type coercion.Write a program in Kotlin
fun main() {
val var: String = "Kotlin "
val part2 = is a cross-platform
String val = ", statically typed, "
val part4 = "general-purpose programming language with type coercion."
print(part1)
print(part2)
print(part3)
print(part4)
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.