Examples:
INTEGER :: count, number_of_students REAL :: price, root_1, root_2 count = 42 root_1 = 3.141 root_2 = 1.77E-2 CHARACTER :: answer CHARACTER(LEN=10) :: name answer = 'Y' name = 'Backus' LOGICAL :: Spock, Kirk Spock = .TRUE. Kirk = .FALSE. |
PROGRAM declarations IMPLICIT NONE ! -- The first line in any programme unit!! CHARACTER(LEN=20) :: name REAL, PARAMETER :: pi = 3.14159265 END PROGRAM declarations |
...previous | up (conts) | next... |