Create a function i kotlin code example
Example 1: kotlin function
fun sum(a: Int, b: Int): Int {
return a + b
}
Example 2: make function kotlin
fun main() {
println("This is a function")
}
fun sum(a: Int, b: Int): Int {
return a + b
}
fun main() {
println("This is a function")
}