<Kotlin function not returning value> This functio...
# stackoverflow
u
Kotlin function not returning value This function is supposed to take a Double, 'amount', and a Boolean, 'international' and return the shipping cost for an order based on the on the location of the order and the amount. Code: fun shippingCost(amount: Double, international: Boolean): Double { val shipping = when { amount >= 75 -> 0.0 amount < 75 -> amount * 0.1 international == true -> amount * 0.15 else -> 50.0 } return (shipping) } fun main(args: Array) { val total =...