RosettaCodeData/Task/Program-termination/Kotlin/program-termination.kts
2024-10-16 18:07:41 -07:00

7 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
}