Specifications
Commands - 89
In the example below, the semicolon at the end of line 20 causes both PRINT statements to be printed
on the same line.
10 INPUT X
20 PRINT X; "Squared is";Xˆ2;" and;"
30 PRINT X; "Cubed is";Xˆ3
RUN
? 9.
9 Squared is 81 and 9 Cubed is 729.OO1
RUN
? 21
21 Squared is 441 and 21 Cubed is 9260.99
This example prints a message to the COM2 port.
100 PRINT #2,"Pressure:";A
In this example, the comma in the PRINT statement causes each value to be printed in successive print
zones.
10 FOR X = 1 TO 5
20 PRINT X,
30 NEXT
RUN
1 2 3 4 5
This does a carriage return.
10 PR
NOTE: The use of PR instead of PRINT does not save memory space. It eliminates the number of
keystrokes.
ERROR: <Data out of range> – if n is not a legal serial port number
<Data negative> – for n