RosettaCodeData/Task/Program-termination/Kotlin/program-termination.kotlin
2017-09-25 22:28:19 +02:00

7 lines
238 B
Text

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