xxxxxxxxxx
// Declare a function in Kotlin
fun happyBirthday(name: String, age: Int): String {
return "Happy ${age}th birthday, $name!"
}
// Call function
val greeting = happyBirthday("Anne", 32)
xxxxxxxxxx
fun main() {
println("Hello, world!!!")
x()
}
fun x(){
println("HELLO WORLD")
}
xxxxxxxxxx
fun main(args: Array<String>) {
var number = 5.5
print("Result = ${Math.sqrt(number)}")
}