RosettaCodeData/Task/Function-definition/Kotlin/function-definition.kotlin
2023-07-01 13:44:08 -04:00

7 lines
142 B
Text

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