You are viewing a single comment's thread. Return to all comments →
In python:
def solve(meal_cost, tip_percent, tax_percent): """ Prints the calculated value, rounded to the nearest integer. :param meal_cost: :param tip_percent: :param tax_percent: :return: The function returns nothing. """ tip = (meal_cost / 100) * tip_percent tax = (tax_percent / 100) * meal_cost total_cost = meal_cost + tip + tax print(int(round(total_cost)))
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 →
In python: