Download Print this page

Commodore 64 User Manual page 45

Hide thumbs Also See for COMMODORE 64:

Advertisement

QUOTATION MARK KEY
HOW TO PRINT MESSAGES
Whenever you want your VIC or 64 to
answer you on the screen, put quotation
marks around whatever you want typed. The
information between the quotation marks is
called a string constant because it doesn't
change. In other words, there is no calculation
involved, as with the mathematical commands
you recently tried.
To display a quotation mark, you hold down
the SHIFT key and press the number 2 key. Try
using the quotation mark now by typing the
following message:
PRINT "HELLO"
Your message appears on the screen.
SCREEN 1
Now press RETURN. The computer answers
you by typing the message enclosed within
the quotation marks: HELLO.
SCREEN 2
Remember that the question mark does the
same thing as the word PRINT. Type the fol
lowing message and press RETURN:
?"HELLO"
The computer again answers with HELLO.
SCREEN 3
Do not clear the screen and do not turn off
the computer before going on to the next
exercise.
SCREEN 1
tf/hen typing a string constant, enclose your
message within quotation marks.
SCREEN 2
Once you press the RETURN key, the
computer prints your message on the screen.
SCREEN 3
You can use the question mark (7) In place
of the word PRINT In your commands.
;
^ •?■ ^ ??' flf fll fS S SS '
•"•*■
QUOTATION MARK key
43

Advertisement

loading

Related Products for Commodore COMMODORE 64

This manual is also suitable for:

Vic 20