KotlinTutorial.kt
fun main() { greet( "How are you?", name = "Hans", reps = 3 ) } fun greet(message: String, name: String = "User", reps: Int = 1) { for (i in 0 until reps) println("Hello, $name! $message") }
fun main() { greet( "How are you?", name = "Hans", reps = 3 ) } fun greet(message: String, name: String = "User", reps: Int = 1) { for (i in 0 until reps) println("Hello, $name! $message") }