Take a look at this:You are incrementing userScore if Correctanswer is equal to (randomnumber1 * randomnumber2) but how could it possibly NOT equal that when that's exactly what you just set it to? The same goes for all your other calculations. You're always testing Correctanswer to see if it's the very value you just set it to, so it always will be.Code:Correctanswer = randomnumber1 * randomnumber2 If Correctanswer = randomnumber1 * randomnumber2 Then userScore = userScore + 1 End If
There's a serious flaw in your logic so I suggest that you forget the code for the moment and get your logic straight. Once you can execute the logic with pen and paper and get the correct result, then you can consider writing code to implement that logic.




Reply With Quote