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.

LOOP VARIABLESTo make sure that each FOR command knows which NEXT command belongs to it, theNEXT command ends in the "loop variable" name. Look at line 60:60 FOR 1=1 TO 2000:NEXT II is the loop variable. And for the loop starting in line 40:T is the loop variable.40 FOR T=12 TO 0 STEP -170 NEXTj"BADLY NESTED LOOPSThe inside loop must be all the way inside:Right:25 FOR X=3 TO 7y-30 FOR Y=3 TO 7( 40 PRINT X*Y\50NEXTY■60 NEXT XWrong:25 FOR X=3 TO 730 FOR Y=3 TO 740 PRINT X*Y50 NEXTX30 NEXT Y101

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

Saved successfully!

Ooh no, something went wrong!