Computer scienceProgramming languagesKotlinKotlin MultiplatformIntroduction to KMP

Tools for KMP

Theory

DISABLE_10

Report a typo

Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Here's a Kotlin Multiplatform code snippet that prints a greeting message and some details. Can you reorder the lines of code to make it work correctly?
Reorder lines using drag or arrows. Adjust indentation with left buttons
                println("Target: $target")
              
                fun main() {
              
                val greeting = "Hello, Kotlin Multiplatform!"
              
                }
              
                val version = "1.7.0"
              
                println("Version: $version")
              
                println("$greeting")
              
                val target = "JVM"
              
___

Create a free account to access the full topic