GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 4 von 18 · Flussdiagramm

Loop flowchart

Kostas Diakogiannis

Loop execution flow

 

In the diagram above you can see the basic normal flow of a loop and how it executes. As you will find later, there are more than one types of loops, but all of them they work the same way. 

At the beginning there is an initial state when the loop starts (for example we set a variable x = 1),

then always we check if a condition evaluates to true (in this case the condition is x < 100),

if this is true, then we execute some code we define.

After the execution of the code, we may update the value of x to 2.

Then we check the condition again ( x < 100 which is still true), execute the same code as before.

We update and continue these steps until the condition that is specified evaluates to false, this causes our loop to break and exit. (stop being executed in other words). 

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck