Type STATEMENT EXAMPLES
Type Statements |
Explanaiton |
INTEGER count, step, i |
specifies that count, step, and i are integer variables |
REAL time, money, junk |
specifies that time, money and junk are single-precision real
variables<
/td>
|
DOUBLE PRECISION pi |
specifies that pi is a double precision variable |
COMPLEX root1, root2 |
specifies that root1 and root 2 are complex variables |
CHARACTER*10 last,first |
specifies that first and last are character variables
containing 10 characters each |
CHARACTER last*20, first*10 |
specifies specifies that last is a character variable of length 20
and first is a character variable of length 10 |
LOGICAL done, error, negative |
specifies that done, error, and negative are logical variables |