Untitled
By: a guest | Feb 9th, 2010 | Syntax:
C++ | Size: 0.32 KB | Hits: 29 | Expires: Never
#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;
}