Question: t main ( ) int month = 1 ; int sales = 0 ; int totalSales = 0 ; / / get an unknown number

t main()
int month =1;
int sales =0;
int totalSales =0;
//get an unknown number of sales
while (month 4)
{
cout "First sales amount
to end): ";
cin >> sales;
while (sales >=0)
{
totalSales += totalSales +
cout "Next sales amount
number to end): ";
cin >> sales;
t main ( ) int month = 1 ; int sales = 0 ; int

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!