Answer

In the first run the same value should have been printed out in both the INTEGER and the REAL case, with the exception that the REAL value is printed with a decimal point. (This is Fortran's way of showing that the value is actually a real number.)

In the second run the same value should have been printed out in both cases, with the exception that the REAL value is printed out in scientific notation. That is, the ``E'' is followed by the number of places to the right that the decimal point should be shifted. (Incidentally, you can give real numbers in this form as input.)

Return to lesson.



Hamlet Project
hamlet@cs.utah.edu