SabirSazzad

Hacker rank prob 2

Oct 30th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. // Complete the solve function below.
  6. void solve(double meal_cost, int tip_percent, int tax_percent) {
  7.  
  8.  
  9. }
  10.  
  11. int main()
  12. {
  13.     double meal_cost;
  14.     cin >> meal_cost;
  15.     cin.ignore(numeric_limits<streamsize>::max(), '\n');
  16.  
  17.     int tip_percent;
  18.     cin >> tip_percent;
  19.     cin.ignore(numeric_limits<streamsize>::max(), '\n');
  20.  
  21.     int tax_percent;
  22.     cin >> tax_percent;
  23.     cin.ignore(numeric_limits<streamsize>::max(), '\n');
  24.  
  25.     solve(meal_cost, tip_percent, tax_percent);
  26.  
  27.     return 0;
  28. }
Add Comment
Please, Sign In to add comment