Advertisement
Md_Touhid

URI - Problem 1008 - Salary

Apr 13th, 2020
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include<iostream>
  2. #include<iomanip> //for setprecision()
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int emp_numbr, wrk_hours;
  9.     double $_per_hour, $_per_month;
  10.  
  11.     cin >> emp_numbr;
  12.     cin >> wrk_hours;
  13.     cin >> $_per_hour;
  14.  
  15.     $_per_month = wrk_hours*$_per_hour;
  16.  
  17.     cout << "NUMBER = " << emp_numbr << endl;
  18.     cout << "SALARY = U$ " << fixed << setprecision(2) << $_per_month << endl;
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement