getting the wrong answer from my counter

1
Last edited on
You should always use braces. Line 41 is not part of the else, it is guaranteed to always be executed.

Also, line 13 should come before line 9.
Last edited on
@LB thank you very much, it works fine now
Topic archived. No new replies allowed.