Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: C++ | Size: 0.32 KB | Hits: 29 | Expires: Never
Copy text to clipboard
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int rate;
  6. int hours;
  7. int pay;
  8. cout << "what is your payrate?" << endl;
  9. cin >> rate;
  10. cout << "How many hours did you work?" << endl;
  11. cin >> hours;
  12. pay = hours * payrate;
  13. cout << "Your total pay for your time worked is " << pay << endl ;
  14. return 0;
  15. }