greeting

PHOTO EMBED

Thu Nov 21 2024 05:52:57 GMT+0000 (Coordinated Universal Time)

Saved by @coding1

fun greet(name: String, customMessage: String = "Hello") {
    println("$customMessage, $name!")
}

fun main() {
    greet("Alice", "Good morning")
    greet("Bob")
}
content_copyCOPY