User`s manual
3-7
Multiple strings or string variables can be joined together (concatenated) by
these specifiers. The "!" sign will allow only the first letter of each string to be
printed. For example:
10 INPUT A$, B$, C$
20 PRINT USING "!";A$;B$;C$
And RUN it .…
? ABC,DEF,GHI
ADG
By using more than one "!" sign, the first letter of each string will be printed
with spaces inserted corresponding to the spaces inserted between the "!"
signs. To illustrate this feature, make the following change to the last little
program:
20 PRINT USING "! ! !";A$,B$,C$
And RUN it . . .
? ABC,DEF,GHI
A D G
Spaces now appear between letters A, D and G to correspond with those
placed between the three "!" signs.
Try changing "! ! !" to "%%" in line 20 and run the program.
The following program demonstrates one possible use for the PRINT USING
statement.
10 CLS
20 A$ = "**$##,######.## DOLLARS"
30 INPUT "WHAT IS YOUR FIRST NAME"; F$
40 INPUT "WHAT IS YOUR MIDDLE NAME"; M$
50 INPUT "WHAT IS YOUR LAST NAME"; L$
60 INPUT "ENTER THE AMOUNT PAYABLE"; P
70 CLS: PRINT "PAY TO THE ORDER OF ";
80 PRINT USING "!! !! "; F$; "."; M$; ".";
90 PRINT L$
100 PRINT: PRINT USING A$;P
110 GOTO 110
RUN the program. Remember, to save programming time, use the "?" sign for
PRINT. Your display should look something like this:
WHAT IS YOUR FIRST NAME? JOHN
WHAT IS YOUR MIDDLE NAME? PAUL










