KotlinTutorial.kt
fun main(): Unit { val max = getMax(12, 2) println(max) } fun getMax(num1: Int, num2: Int): Int { if (num1 > num2) { return num1 } else { return num2 } println("This will not be printed") }
fun main(): Unit { val max = getMax(12, 2) println(max) } fun getMax(num1: Int, num2: Int): Int { if (num1 > num2) { return num1 } else { return num2 } println("This will not be printed") }