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.

GLUING THE STRINGS<strong>Here</strong> is how to stick two strings together to make a longer string.Enter10 PRINT "clr"20 LET W$= "HAR DE "25 LET X$= "HAR "30 LET A$= W$+X$40 PRINT A$50 PRINT60 LET A$= A$+X$70 PRINT A$Before you RUN this program, try to guess what will be printed at line 40 and at line 70:4070Now run the program to see if you were rightLines 30 and 60 glue strings together.RULE: The "+ " sign sticks two strings together.Assignment 7:1. Write your own program which uses the LET command and explain how it storesthings in "boxes."2. Write a program which inputs two strings, glues them together and then prints them.47

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

Saved successfully!

Ooh no, something went wrong!