Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. while (true)
  2. {
  3. if (hourswork < 0 || hourswork > 70)
  4. {
  5. cout<<"Please enter a value between 0 to 70: ";
  6. cin>>hourswork;
  7. }
  8. else
  9. {
  10. wages = RATE * hourswork;
  11. cout << "The wage is: " << wages << endl;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement