Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<iomanip> //for setprecision()
- using namespace std;
- int main()
- {
- int emp_numbr, wrk_hours;
- double $_per_hour, $_per_month;
- cin >> emp_numbr;
- cin >> wrk_hours;
- cin >> $_per_hour;
- $_per_month = wrk_hours*$_per_hour;
- cout << "NUMBER = " << emp_numbr << endl;
- cout << "SALARY = U$ " << fixed << setprecision(2) << $_per_month << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement