Irrespective of the condition, control enters into the do-while loop, after completion of body execution, condition is checked whether true/false.
In der do-while-Schleife wird die Bedingung geprüft, nachdem alle Anweisungen im Hauptteil der Schleife ausgeführt wurden.
The do-while loop guarantees that the code inside runs at least on one iteration.
Die "do-while"-Schleife garantiert, dass der Code darin mindestens einmal läuft.
The do-while loop starts by executing the code before verifying if it should repeat.
Die "do-while"-Schleife beginnt damit, den Code auszuführen, bevor geprüft wird, ob sie sich wiederholen soll.
The do-while loop vs the while loop
Die Do-While-Schleife im Vergleich zur While-Schleife
The do-while loop is used to execute a section of program many times.The characteristics of the do-while is that the block of statement is always executed at least once.
Die Eigenschaft von do-while ist, dass das Block vom Statement mindesten einmal ausgeführt wird. Nach jeder Iteration prüft das Programm die Bedingung wieder.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.