// CS11 Laboratory #5: Implementing Loops and Loop Control Stragegies // Description: This program a for loop (with a counter control // strategy) to sum a series of integer values. #include int main() { int N, sum, number, i; cout << "Enter the number of values to be summed: "; cin >> N; cout << endl; // A blank line for readability sum = 0; // Initialize the sum. for (i = 1; i < N; ++i) { cout << "Enter an integer value: "; cin >> number; sum += number; } cout << endl; // skip another line cout << "The total for the values processed is: " << sum << endl; return 0; }