Do while loop is used to repeat a part of the used program several times, and the repetition is executed at least once even if the condition is not fulfilled. This is because the condition is checked after execution, and it is also used when we want a part of the program at least once. Repetition begins with the command do then comes after it a set of phrases and prompts to be repeated, ending with the while command
When the translator finds the statement (do), he will re-execute the expressions confined between this command and the (while) command, and every time the translator reaches (while) he checks the condition that follows it. If the condition is fulfilled, the translator returns to the command (do), and starts By executing from (do) down to the (while) command again, and this process continues until the condition is not fulfilled