"if()" and "else" functions not working properly

Having a little trouble with my TripleX program…
It looks like I’ve typed everything out correctly, but for some reason, even when I’ve inputted the correct numbers, the else statement is executed and I get the “You lose!” (or in my case “It’s too late! Get outta there!”) message.


Here’s my code. Is there anything I’m missing?

Could you show your input/output
Also are you sure you recompiled?


I did compile it.

Oh I see it now. You have GuessB twice for the GuessProduct

:man_facepalming: I didn’t see that. Thank you.

It’s working now, thank you.

Easy mistake to make :stuck_out_tongue:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms