RosettaCodeData/Task/Program-termination/Kotlin/program-termination.kts

8 lines
238 B
Kotlin

// version 1.0.6
fun main(args: Array<String>) {
val problem = true
if (problem) System.exit(1) // non-zero code passed to OS to indicate a problem
println("Program terminating normally") // this line will not be executed
}