Programming/Fortran

Formatted WRITE Statement

투정이 2008. 11. 24. 13:59

WRITE (unit, format) output_list

Example:

WRITE (*, 100) i, j, slope

100 FORMAT (1X, 2I10, F10.2)

WRITE (*, '(1X, 2I10, F10.2)') i, j, slope