You are viewing a single comment's thread. Return to all comments →
Java:
public static void solve(double meal_cost, int tip_percent, int tax_percent) { double tip = (meal_cost * tip_percent) / 100 ; double tax = (meal_cost * tax_percent ) / 100; System.out.printf("%.0f", (meal_cost + tip + tax)); }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
Java: