HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
PRINT
Chapter 10432
Formatted output
The following statement writes the contents of the variables num and des to standard output,
using the format specification in the FORMAT statement at label 10:
PRINT 10, num, des
List-directed output
The following statement uses list-directed formatting to print the literal string x= and the
value of the variable x:
PRINT *, 'x=', x
Embedded format specification
The following statement uses an embedded format specification to print the same output:
PRINT '(A2, F8.2)', 'x=', x
Namelist-directed output
The following statement prints all variables in the namelist group coord, using
namelist-directed formatting:
PRINT coord
Related statements
FORMAT and WRITE
Related concepts
For related information, see the following:
“List-directed I/O” on page 210
“Embedded format specification” on page 264
“Implied-DO loop” on page 223