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.

Try another. Change line 40 to40 PRINT RIGHT$(N$,3)and run the program again. This time the computer prints789RIGHT$( ) is like LEFT$( ) except the characters are saved from the right end of thestring. (But the order of letters is still "reading order," left to right)MORE SNIPPING AND GLUINGRun:10 REM::: SCISSORS AND GLUE:::20 PRINT'clr"30 N$="THE CATS MEOW"35 FOR 1=1 TO 940 L$=LEFT$(N$,I) : R$=RIGHT$(N$,I)50 PRINT I;L$+R$60 NEXT IThe pieces of string you snip off can be glued back together in a different order. Add thisline and run:55 IF l=4 THEN PRINT: PRINT R$ + L$ :PRINTHOW LONG IS THE STRING?Run: 10 REM : HOW LONG? :20 PRINT "clr"30 INPUT " GIVE ME A STRING: ";N$35 PRINT "clr"40 L=LEN(N$)50 PRINT " THE STRING: dn"52 PRINT "

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

Saved successfully!

Ooh no, something went wrong!