11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LESSON 17FOR-NEXT LOOPSRemember the delay loop? The computer counted from 1 to 2000 and then went on.30 FOR T=1 TO 2000:NEXTTThe computer is smarter than that. It can do other things while it is counting.Run this:10 REM COUNTING20 PRINT'clr"30 FOR l=5 TO 2040 PRINT I50 NEXT IThe loop can start on any number and end on any higher number. Try changing line 30 inthese ways:30 FOR 1=100 TO 10130FORH-7TO1330 FOR 1=1.3 TO 5.7MARK UP YOUR LISTINGSShow where the loops are by arrows.10 REM ON PAPER20 PRINT'clr"C30FORI=0TO740 PRINT I50 NEXT I4!99

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!