Answer

Notice that we have eliminated the DO loop and replaced it with what appears to be an WHILE infinite loop. We read NUMBER from UNIT 7, add it into our running SUM, and then loop back up to the READ statement.

Return to lesson.



Hamlet Project
hamlet@cs.utah.edu