Create a function that orders a coffee and call it in the main function to display the order details. Fill the blanks in the code to make it work correctly.
Invoking functions
Brewing code for the perfect cup
Report a typo
Fill in the gaps with the relevant elements
orderCoffee(type: , size: String): String {
return "You ordered a $size $type."
}
fun main() {
val order = orderCoffee("latte", "large")
(order)
}Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.