I’m close to throwing my Calculator out of the window (even if it means relinquishing myself of a desktop PC)!
Could somebody have a look at my code and give me some hints as to how I pass the final test? It needs to manage the operators so that the last one entered is the one that is used, apart from the blasted ‘-’ sign!!
I’ve literally been looking at it for hours and have tried numerous solutions, which end up tying me in knots.
Thanks in advance!
(ps I’ve kept the h1 placeholders for my state at the moment as it helps me to track it)