RosettaCodeData/Task/Function-definition/Kotlin/function-definition.kts
2024-10-16 18:07:41 -07:00

7 lines
142 B
Kotlin

// One-liner
fun multiply(a: Int, b: Int) = a * b
// Proper function definition
fun multiplyProper(a: Int, b: Int): Int {
return a * b
}