I wrote the codes, but if I entered the wrong answer, it says you won
does it always say that you won or just sometimes? Also, could you show all of your code?
You have:
int GuessSum = a+b+c;
int GuessAbc= a*b*c;
And it has to be:
int GuessSum = GessA+GuessB+GuessC;
int GuessAbc= GuessA*GuessB*GuessC;
yeah, you are initialized both of them the same way. So it’s going to make player win always when you compare them.
thanks for help
1 Like
sorry, can you show the whole code?