cout << "Enter number of hours worked (-1 to end): ";
cin >> hrsWorked;
}
} // end while
system("pause");
return 0;
}//end of main function
I ma trying to run this with a while loop with the first cout<< and cin>> outside the loop to calculate the overtime for hours worked >40. I am currently havving issues when the cout and cin it outside of the loop.