Answer

It prints out that the sum is 0. When you try to read from a unit that is connected to a file that doesn't exist, Fortran first creates an empty file by that name and then proceeds to read it. Since the file is empty, the SUM printed out is 0.

Return to lesson.



Hamlet Project
hamlet@cs.utah.edu