The condition is just as we have seen before in the other loops. The statements contained here are executed everytime through the loop before the loop condition is tested. They are not executed until the end of the first time through the loop. Updating can have more than one update statement. In the update and initialization section, if more than one statement is present you must separate them by commas.
Conditions can have multiple comparisons.
Some may find this loop to be the most difficult to comprehend, but I find it to be the most useful. You, however, will make your own decisions. To test your understanding of this loop, try writing the averaging program using a for-loop. Convert this while loop to a logical, well-constructed for loop. With that information, make the transition to the for loop.