Previous Topic Next topic Print topic


Print

Use

Prints the next line or a number of lines.

Command Syntax

Print x

or

P x

where x is the number of lines that are going to be printed. x is optional and if it is omitted, only one line will be printed.

Description

Print displays a line or a number of lines in the output window. If you want to print a number of lines, specify the number after the PRINT command.

Example

This example shows the output of PRINT:

CodeWatch> P
  119: do while (n > 1);

The following example shows the output of PRINT plus a specified number of lines:

CodeWatch> PRINT 15
109       /* main procedure */
110
111       declare n fixed binary(31);
112
113       put skip;
114       put list (' *** Sieve of Eratosthenes ***');
115       put skip (2);
116
117       call read_input(n);
118
119       do while (n > 1);
120          call sift(n);
121          call read_input(n);
122       end;
123   
124   end;
Previous Topic Next topic Print topic