How to Exit Program in Kotlin - Code Snippet

How to perform 'Exit Program' in Kotlin.

example.kt
// Task: Exit Program
// Language: Kotlin

fun exit_program() {
    // Implementation for Exit Program
    val result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process Exit Program
    println("Done");
}
AdSense Slot