Answer
This time Fortran successfully read the two numbers, added them, and then
divided them by 2. But what does it mean to divide an odd integer by
2? Because both the dividend and the divisor are integers, Fortran does an
integer division. In an integer division, any fractional part of the quotient
is simply discarded.
Return to lesson.
Hamlet Project
hamlet@cs.utah.edu