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...
By Anonymous on the 9th of Feb 2010 08:52:48 PM
Download |
Raw |
Embed |
Report
#include <iostream>
using namespace std;
int main()
{
int rate;
int hours;
int pay;
cout << "what is your payrate?" << endl;
cin >> rate;
cout << "How many hours did you work?" << endl;
cin >> hours;
pay = hours * payrate;
cout << "Your total pay for your time worked is " << pay << endl ;
return 0;
}
Submit a correction or amendment below.
Make A New Post