ShriRam Changed status to publish August 17, 2023
amount = int(input(“Enter amount: “))
if amount >= 10000:
discount = amount * 0.1
elif amount >= 5000:
discount = amount * 0.05
else:
discount = amount * 0.02
print(“Discount”, discount)
print(“Net payable:”, amount – discount)
ShriRam Changed status to publish August 17, 2023