Loops in C#

Note: If the Boolean expression is true, all of the statements in the loop execute, even if the expression becomes false during the loop.
Look at the difference in the output when the position of the increment is is before adding to the list box:

private void Form1_Load(object sender, EventArgs e)
  int num = 1;
     num *= 2;

A common mistake with loops is to omit the first value and include an extra value past the intended end point.

NEXT: Microsoft Reference: do loops