Next: A simple C++ program
Up: Algorithms
Previous: Review Questions
repeat
statement 1.
.
statement n.
until condition
which executes the statements contained between repeat and until until
the condition becomes true. For example to allow a user
of a program the chance to re-run it with a new set of data a
repeat loop might be used as follows:repeat enter and process data. ask if user wishes to process more data. read reply. until reply is noNow extend your algorithm for question 2 so that it repeats entering the dimensions of rectangles and calculating the results. After each calculation the user should be asked if they wish to continue.