Answer
To make this work, you'll have to type each number of the input on a separate
line. And each number of the output shows up a different line. The problem is
that the READ statement is executed five separate times (once each time through
the loop), which means that five different lines are read. And the WRITE
statement is executed five separate times, meaning that five separate lines are
written.
Return to lesson.
Hamlet Project
hamlet@cs.utah.edu