In the following program segment, which variable is the counter variable and which is
Chapter 5, Problem 5.13(choose chapter or problem)
In the following program segment, which variable is the counter variable and which is the accumulator? int a, x, y = 0; for (x = 0; x < 10; x++) { cout << "Enter a number: "; cin >> a; y += a; } cout << "The sum of those numbers is " << y << endl;
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer