| 10 | } |
| 11 | |
| 12 | int main() |
| 13 | { |
| 14 | double meal_cost; |
| 15 | cin >> meal_cost; |
| 16 | cin.ignore(numeric_limits<streamsize>::max(), '\n');//ignores the input buffer for next input |
| 17 | |
| 18 | int tip_percent; |
| 19 | cin >> tip_percent; |
| 20 | cin.ignore(numeric_limits<streamsize>::max(), '\n'); |
| 21 | |
| 22 | int tax_percent; |
| 23 | cin >> tax_percent; |
| 24 | cin.ignore(numeric_limits<streamsize>::max(), '\n'); |
| 25 | |
| 26 | solve(meal_cost, tip_percent, tax_percent);//function call |
| 27 | |
| 28 | return 0; |
| 29 | } |