Answer
PI is a mathematical constant, but we are representing it in the
Fortran program as a variable! Surely we do not intend to change the
value of PI during the middle of the program's execution, but there is
nothing to stop us from doing just that. It would be nice if we could
inform the compiler that PI is intended to be a constant. Then the
compiler could let us know if we attempted to change it.
Return to lesson.
Hamlet Project
hamlet@cs.utah.edu