param.f

C  Author:   Mitch Richling<http://www.mitchr.me/>
C  IP:       Copyright 1993 by Mitch Richling.  All rights reserved.
C  Key word: parameter statement FORTRAN f77
C  Notes:    Illustrates the FORTRAN parameter statement 
C            
      program param 

C     Parameters are named constants with usage rules much like
C     that found in C macros -- except parameters have real
C     scoping rules.  Note that they are typed, just like regular
C     variables.  You can use parameters in places you can not
C     use variables, but one parameter may NOT depend upon another.
      real a, b, i
      parameter (a=1, b=3.2, i=5.4)

      write (*,*) 'a=', a
      write (*,*) 'b=', b
      write (*,*) 'i=', i

      end

Generated by GNU enscript 1.6.4.