Getting Started - The Print Command; Printing Numbers; Using The Question Mark To Abbreviate The Print Command - Commodore 128 System Manual

Table of Contents

Advertisement

GETTING STARTED — THE PRINT COMMAND
The PRINT command tells the computer to display information on
the screen. You can print both numbers and text (letters), but
there are special rules for each case, described in the following
paragraphs.

Printing Numbers

To print numbers, use the PRINT command followed by the
number(s) you want to print. Try typing this on your Commodore
128:
PRINTS
Then press the RETURN key. Notice the number 5 is now
displayed on the screen.
Now type this and press RETURN:
PRINT 5,6
ln this PRINT command, the comma tells the Commodore 128
that you want to print more than one number. When the computer
finds commas in a string of numbers in a PRINT statement, the
output is displayed to the nearest tenth column. If you don't want
all the extra spaces, use a semicolon (;) in your PRINT statement
instead of a comma. The semicolon tells the computer to print the
numbers next to each other. A number when printed has either a
space or a minus sign preceding it and a skip character after it.
Type these examples and see what happens:
PRINT 5;6
PRINT 100;-200;300;-400;500 ffFTlmN

Using the Question Mark to Abbreviate the PRINT Command

You can use a question mark (?) as an abbreviation for the
PRINT command. Many of the examples in this section use the ?
symbol in place of the word PRINT, ln fact, most of the BASIC
commands can be abbreviated. The abbreviations for BASIC
commands can be found in Appendix K of this Guide.
3-12

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

128d

Table of Contents