Put a copy of statements 2 and 3 right after the first copy.
This program uses several copies of the two statements:
' Counting up LET COUNT = 0 'Statement 1 PRINT COUNT 'Statement 2 LET COUNT = COUNT + 1 'Statement 3 PRINT COUNT 'Statement 4 LET COUNT = COUNT + 1 'Statement 5 PRINT COUNT 'Statement 6 LET COUNT = COUNT + 1 'Statement 7 PRINT COUNT 'Statement 8 END
Each LET statement (except for the first) gets the
number in COUNT
, adds 1 to it, and then puts the
result back in COUNT
.
What will be printed to the monitor when the program is run?