precio_unitario=5.0
cantidad=int(input("Ingrese la cantidad de sillas que desea comprar: "))
subtotal=precio_unitario * cantidad
if cantidad > 20:
descuento = subtotal * 0.10
elif cantidad > 10:
descuento = subtotal * 0.05
else:
descuento = 0
total=subtotal-descuento
print(f"Subtotal: ${subtotal:.2f} USD")
print(f"Descuento aplicado: ${descuento:.2f} USD")
print(f"Total a pagar: ${total:.2f} USD")
To embed this project on your website, copy the following code and paste it into your website's HTML: