# tip calculator

print("Welcome to the tip calculator!")
bill = float(input("What was the total bill? "))
tip = float(input("What percentage tip would you like to give?
            10, 12 or 15? "))
people = int(input("How many people to split the bill? "))

pay = round(bill * (1 + tip / 100) / people, 2)
message = f"Each person should pay: $ {pay}"
print(message)

# tip calculator

print("Welcome to the tip calculator!")
bill = float(input("What was the total bill? "))
tip = float(input("What percentage tip would you like to give?
            10, 12 or 15? "))
people = int(input("How many people to split the bill? "))

pay = round(bill * (1 + tip / 100) / people, 2)
message = f"Each person should pay: $ {pay}"
print(message)

# tip calculator