Buying Chocolates with Money
Your task is to purchase exactly two chocolates from the store in such a way that you still have some leftover money(possibly zero). You want to minimize the sum of the prices of the two chocolates you buy.
Print the amount of money you will have leftover after purchasing the two chocolates. If there is no way for you to buy two chocolates without ending up in debt, print money.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)