calling functions in println KOtlin code example
Example 1: kotlin print statement
//Kotlin print statement
//print on its own line
println("Hello world")
//regular print statement, will go on top of last line
print("Hello world")
Example 2: return type in kotlin function
//Function having two Int parameters with Int return type
fun sum(a: Int, b: Int): Int {
return a + b
}