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 33DEBUGGING, STOP, CONTTHE STOP COMMANDEnter and run:10 REM SECRET STOP20 PRINT "clr"25 R=INT(RND(8)*200)30 FOR l=0 TO 20040 IF I=R THEN STOP50 NEXT IThe program will stop, and the computer will peep and print a message:BREAK IN LINE 40What do you suppose the secret value of I was?Enter PRINT I (No line number)and find out.HOW TO START IT AGAINEnter the command CONT. Try it!"STOP" IS LIKE "END"STOP makes the computer stop and enter the Edit mode.It is like END except it prints the number of the line that the STOP is in.You can have as many STOP commands in your program as you like.STOP is used for debugging your program.191

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

Saved successfully!

Ooh no, something went wrong!