FORTRAN 77 Language Reference

Examples

Example 1: IF/END IF


       IF ( N .GT. 0 )THEN
              N = N+1
       END IF

:

Example 2: IF/ELSE/END IF:


       IF ( N .EQ. 0 ) THEN
              N = N+1
       ELSE
              N = N-1
       END IF