Answer:

0
1
2
3
4
5

More Practice

Here is the program:

' Loop with a loop condition
'
LET COUNT = 0            'Statement 1

DO WHILE COUNT <= 5      'Statement 2
  PRINT COUNT            'Statement 3
  LET COUNT = COUNT + 1  'Statement 4
LOOP 

END

It is often useful to try to understand the first number and the last number that are printed.

Getting confused by a loop is very easy, even among professional programmers. Practice helps. Here is the program again, with changes.

' Loop with loop condition
'
LET COUNT = 1            'Statement 1

DO WHILE COUNT <= 3      'Statement 2
  PRINT COUNT            'Statement 3
  LET COUNT = COUNT + 1  'Statement 4
LOOP 

END

QUESTION 16:

What will this new program print?