Contact Us:

670 Lafayette Ave, Brooklyn,
NY 11216

+1 800 966 4564
+1 800 9667 4558


print("Welcome to the tip calculator!")
i_bill = int(input("What was the total bill?\n$"))
i_tip = int(input("How much tip would you like to give?\n10, 12, or 15? 12\n"))
i_emply = int(input("How many people to split the bill? 7\n"))
tip_percent = i_tip / 100
per_person_tip = (i_bill / i_emply) * tip_percent
per_person_pay = per_person_tip + (i_bill / i_emply)
payment = round(per_person_pay, 2)
print(f"Each person should pay: ${payment}")
0 0 votes
Article Rating

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x