
As discussed in class Thursday, in QBASIC, you have the option of writing pre-test or post-test loops. A pre-test loop is one in which the condition to stop the repetition is checked before the body of the loop is executed, therefore, the minimum number of iterations is zero. A post-test loop is one in which the loop termination condition is tested after the first execution of the loop's body; the minimum number of iterations is one.
Let's look at some source code for pre-test loops.