Remote-processing CAMBASIC Manual de usuario Pagina 130

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 208
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 129
Commands - 97
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 exam ple prints a m essage to the C OM2 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
Vista de pagina 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 207 208

Comentarios a estos manuales

Sin comentarios