Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- purchase_amt = int(input("Enter purchase amount (Php): "))
- if purchase_amt >= 2000:
- discount = purchase_amt * 0.2
- print("You have a discount of {0} pesos.".format(discount))
- print("Your total payable amount is {0} pesos.".format(purchase_amt - discount))
- elif 1000 < purchase_amt < 2000:
- discount = purchase_amt * 0.1
- print("You have a discount of {0} pesos.".format(discount))
- print("Your total payable amount is {0} pesos.".format(purchase_amt - discount))
- else:
- print("You have no discount.")
- print("Your total payable amount is {0} pesos".format(purchase_amt))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement