So new at this. Working on my problem. My last 'else' statement is not executing. I have a condition in there to pop a MessageBox if starting amount is not over 0. But no matter what I do the MessageBox will not pop if I type in a negative number. The program does nothing and just sits there. Please help. Thank you. Programming Code Here
CodePudding user response:
The problem is that a closing bracket }
is missing after the last else if
that would close the inner if
statement.
Currently the else
statement belongs to the inner if
statement.
CodePudding user response:
you need a last bracked before your last else, that checks if is negative or not