#If the bill was $150.00, split between 5 people, with 12% tip. 

#Each person should pay (150.00 / 5) * 1.12 = 33.6

#Format the result to 2 decimal places = 33.60

#Tip: There are 2 ways to round a number. You might have to do some Googling to solve this.💪

#Write your code below this line 👇


print ("Welcome to the tip calculator!")
bill = float(input("What was the total bill? $"))
tipP = int(input("How much tip would you like to give? 10, 12, or 15? "))
tip = (tipP * bill)/100
totalBill = bill + tip
split_bill = int(input("How many people will split the bill? "))

eachPay = totalBill/split_bill

fBill = round(eachPay, 2)
fBill = "{:.2f}".format(eachPay)

print(f"Each person should pay: ${fBill}")