Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true)
- {
- if (hourswork < 0 || hourswork > 70)
- {
- cout<<"Please enter a value between 0 to 70: ";
- cin>>hourswork;
- }
- else
- {
- wages = RATE * hourswork;
- cout << "The wage is: " << wages << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement