11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LESSON 11TAB AND DELAY LOOPSTHE TAB COMMANDTAB in a PRINT command is like the TAB on a typewriter. It moves theprinting cursor a number of spaces to the right(The printing cursor is invisible.)The next thing to be printed goes where the cursor is.Try this:10 PRINT "123456789ABCDEF"30 PRINT TAB(3);"Y";TAB(8);"Z"RULE: After TAB(N), the next character will be printed in column N=l.CAREFUL!Run this:10TAB(5)You see SYNTAX ERROR IN 10. TAB( ) has to be in a PRINT command. You cannotuse TAB( ) by itself.YOU CANNOT TAB BACKWARDSTry this:10 PRINT "123456789ABCDEF"20 PRINT "A";TAB(9);"B";TAB(3);"C"The TAB( ) command can move the printing only to the right You cannot move back tothe leftYOUR NAME ISFALLING!10 PRINT "clr"15 LET N=120 PRINT "YOUR FIRST NAME"30 INPUT W$40 PRINT TAB(N);W$50 LET N=N+160 GO TO 40Press STOP to stop the run.This program prints your name in a diagonal down the screen, top left to bottom rightTry other values of N. Try changing lines:15 LET N=1550 LET N=N-166

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

Saved successfully!

Ooh no, something went wrong!