
Lesson 6-2: Count-Controlled Loops
136 | Chapter 6
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Change program Count so that the number of values to be read (limit) is read from
the keyboard rather than being set as a named constant. Run your program using a value of 9 and
entering the data listed for Prelab Exercise 1. (Don’t forget to prompt for limit.) Your answer
should be the same. If it is not, you have an error.
Run your program again entering a value of your choice for limit, followed by limit integer
values.
limit Your Data Sum
_____________ _____________ ...