Open notepad or VSCode and create a file firstProgram.kt and wite the following code.
fun main(args: Array<String>) {
println("Hello World")
}
To compile the program in the command-line compiler, go to destination folder and
E:\programs>kotlinc firstProgram.kt
To Run the program to see the output in a command-line compiler.
E:\programs>kotlin firstProgram.kt
Hello World