Saturday, November 28, 2020

 print('wellcome!')

bill = float(input('what is the total? '))
split = int(input('how many people are there? '))
tip = int(input('how much tip will you enter,10,12 or 15 euro? '))

bill_with_tip = tip / 100 * bill + bill
print(bill_with_tip)
result = (bill_with_tip / split)
total = round(result, 2)
print(f"each person should pay ${total}")

No comments:

Post a Comment