kotlin main code example
Example 1: how to write hello world in kotlin
fun main() {
println("Hello World!")
}
Example 2: kotlin variable in string
//Kotlin variable in string
//variables go in a ${} in a string, example
println("Happy ${age}th birdthday, ${name}!"
Example 3: return type in kotlin function
//Function having two Int parameters with Int return type
fun sum(a: Int, b: Int): Int {
return a + b
}