next up previous contents
Next: WRITE Up: THE SCL COMMANDS. Previous: RETURN   Contents


PRINT

PRINT causes the list of expressions you give it to be evaluated and printed to the current output device. Expressions may be any of:

Items are separated by commas or spaces, and the list is optionally enclosed in brackets.

Items may optionally be followed immediately by a colon (:) and a FORTRAN format specifier, to control the width of the output field.

Examples:

       >>  print x
       >>  print (x/3)
       >>  print '5 times x = ', 5*x:f10.4
       >>  print x   y(j)
       >>  print 'This is rachael''s  output'

See also the WRITE command, to write output to a character variable.



Jamie Leech 2004-08-16