Recent Posts
PHP | 2 min ago
JavaScript | 2 min ago
Python | 2 min ago
None | 3 min ago
None | 3 min ago
PHP | 3 min ago
XML | 3 min ago
None | 3 min ago
None | 3 min ago
Java | 4 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Anonymous on the 9th of Feb 2010 08:52:48 PM Download | Raw | Embed | Report
  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. }
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: