0
code coach - ball park [easy]
what's the problem with my code.. I cant get it right https://code.sololearn.com/cqmO7zKh84jZ/?ref=app
2 Antworten
+ 4
Try changing to an if-else if-else or a swtich-case-default instead. You're not providing the price of a coke if the food item doesn't match (else or default). No need to check the remaining cases if you find a match (else if).
+ 1
thanks, I didn't notice about coke if the item doesn't match.