Sep-26-2020, 03:43 AM
First of all, I don't understand why you have both 11 and 12. It seems like you don't need both.
But your big problem is that you're changing the total after testing it, but before doing something with it.
Imagine you got a 5 and entered the if portion. Then you change total to something else (like 11). it then removes 1 and prints "loser"without caring that total is now greater.
But your big problem is that you're changing the total after testing it, but before doing something with it.
Imagine you got a 5 and entered the if portion. Then you change total to something else (like 11). it then removes 1 and prints "loser"without caring that total is now greater.