Generation

generate functionSat, 12 Nov 2022

Pronounce a blessing upon the name passed into the function and return the days lottery number picks

fun sayHello(name: String): List<Int> { println("Hello $name") return listOf(1, 2, 3, 4, 5, 6) } val lotteryNumbers = sayHello("Hakeem") println("The lottery numbers are:") lotteryNumbers.forEach { println(it) }

Questions about programming?Chat with your personal AI assistant