A do while loop does not include the while condition. A do statement must have a corresponding while test at the end of the code block.
To correct this error
-
Include the while test statement after the closing curly brace.
A do while loop does not include the while condition. A do statement must have a corresponding while test at the end of the code block.
Include the while test statement after the closing curly brace.