Could someone help me with this code i have the application working properly but my professor said he would like a "do while" in it could someone help me with this please
#include <iostream>
#include <iomanip>
#include <cmath>
usingnamespace std;
int main()
{
int payroll = 0;
int storePayroll = 0;
int totalPayroll = 0;
for (int store = 1; store < 4; store += 1)
{
cout << " First Payroll (-1 to end): Store " << store << ":";
cin >> payroll;
while (1)
{
storePayroll += payroll;
cout << "Next payroll amount (-1 to end): Store " << store << ":";
cin >> payroll;
if (payroll == -1)
{
break;
}
}//end while
totalPayroll + storePayroll;
cout << "Stores current total payroll: $" << storePayroll << endl;
} //end for
system("pause");
return 0;
}