Commodore PET User Manual page 103

Table of Contents

Advertisement

C$="-":FOR 1=1 TD 780:?C$; :NEXT:?"PHEW!"
--------------------PHEW!
READY.
~
Concatenation, or printing items right next to each other with no
spaces in between, is how the semicolon works for string data. Numeric data
also prints in a continuous line format, but with a space between the num-
bers hwo spaces if a positive number, since the
+
sign is not printed).
Ta illustrate this. change the string variable ta numeric for entry of any posi-
tive or negative one-digit number; and. since three positions will be taken for
each number. change the ending index ta 800/3=267. The line will look like this.
selecting 5 as the number ta be printed:
C=+5:FDR 1=1 Tû 267:?C; :NEXT:?"PHEW!"
90

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cbm

Table of Contents