Hi, does anyone could help me with the ice cream task
In the description of the task, said that I have to pretend that i want to buy ten ice creams for my ten friends, so I need to make a program that take my money and the price as an entrance and the exit has to be the remaining money only if a can pay for the ice creams. I don t have to make an exit if I don't have "enough money" for buy the ice creams. My problem is that the task have predetermined results , and for that reason I can't put my own price or my own amount of money. I can see the results and one of them is this The example: 100 money 10 price And the expected exit 0 With that example I actually can work this is the program : money =int(input()) price =int(input()) if money >= price : if price *10==100: if money - 100 == 0: print("0") And it actually works but only for that example In specific. But for the rest of the examples i don't know what to do. The others examples work with the program before but as individual no in the same program and that's the problem.