bill_splitter

 print("Welcome to the tip calculator : ")

n=float(input("What was the total bill : "))
t=int(input("What % of tip would you like to give? 10, 12 or 15? : "))

p=int(input("How many people are there? : "))

percentage=t/100
total=(1+t/100)*n
per_pay=round(total/p,2)

print("Each person should pay {}".format(per_pay))

Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings