Whats wrong with this while loop? [duplicate]

You have a semicolon after the condition. When you use braces to specify a block for your while you don’t use a semicolon.

Leave a Comment