0 1 2
That was an easy question. But there is a good chance that you got it wrong. This is because there are three things you have to think about to get the correct answer:
WHILE
.The statements that do these things are spread out in the program:
' Counting Loop ' LET COUNT = 0 'Statement 1: start the counter ' DO WHILE COUNT <= 2 'Statement 2: test the counter PRINT COUNT 'Statement 3 LET COUNT = COUNT + 1 'Statement 4: increment the counter LOOP END
But all you want to do (in this program) is to count 0, 1, 2.
Wouldn't it be nice to have an easy way to say "count up from zero to two" (or whatever range you wanted)?