12.07.2015 Views

page-1983-101-timex-sinclair-programming-tricks

page-1983-101-timex-sinclair-programming-tricks

page-1983-101-timex-sinclair-programming-tricks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

stance: I WENT TO THE STORE comes out EROTS EHTOT TNEW I.Program Listing10 CLS20 PRINT •WHAT IS THE MESSAGE ?"30 INPUT A$40 LET L=LEN A$50 FOR J=L TO 1 STEP -160 PRINT A$ (J);70 NEXT J80 PRINT90 GOTO 207 Up, Down, Back, Forth"Good golly, what can't that computer do?", will bethe question from your surprised neighbor when youshow him this neat trick.You type in any word. The computer instantly prints iton the video display, both up and down vertically, andbackward and forward horizontally. It's great to show howsmart your computer is when it comes to spelling!Program Listing10 PRINT "GIVE ME A WORD"20 INPUT A$30 CLS40 LET L=LEN A$50 PRINT •noWN:","UP:"60 FOR J=l TO L70 PRINT A$(J),A$(L+l-J)80 NEXT J90 PRINT100 PRINT 11 FORWARD: 11110 PRINT A$120 PRINT22

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

Saved successfully!

Ooh no, something went wrong!