Question: In the code shown below, the __________ clause begins the outer loop. int sales = 0; int region = 1; int totRegSales = 0; while
In the code shown below, the __________ clause begins the outer loop.
int sales = 0;
int region = 1;
int totRegSales = 0;
while (region < 3)
{
cout << "First sales amount for Region "
<< region << ": ";
cin >> sales;
while (sales > 0)
{
totRegSales = totRegSales + sales;
cout << "Next sales amount for Region "
<< region << ": ";
cin >> sales;
} //end while
cout << endl << "Region " << region << " sales: $"
<< totRegSales << endl << endl;
region = region + 1;
totRegSales = 0;
} //end while
cout << "End of program" << endl;
Question 13 options:
| a. | int totRegSales = 0; |
| b. | while (region < 3) |
| c. | cin >> sales; |
| d. | while (sales > 0) |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
