Loops

Loops are a way to repeat through some code and run it over and over.

FOR

FOR EACH

DO WHILE

WHILE

Example of a do while loop:

var counter = 6;
do {

    counter++;

    display(counter);

} while (counter < 5);

Back to MAIN CSHARP PAGE