Exercises
See Appendix A, Exercise Answers for the answers.
- Extend the problem from the last chapter to repeat the operation until the word
endis entered for one of the values. (Hint: use an infinite loop, and then do alastif either value isend.) - Rewrite the exercise from Control Structures, summing numbers up to 999, using a loop that exits from the middle. (Hint: use a naked block with a
redoat the end to get an infinite loop and alastin the middle based on a condition.)