Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- precio = 30
- cantidad = 7
- Subtotal = cantidad * precio
- Resto = cantidad / 3
- X = Resto % 1
- Descuento = (Resto - X) * precio
- Total = Subtotal - Descuento
- print("Resto = {0}".format(Resto))
- print("X = {0}".format(X))
- print("Subtotal = {0}".format(Subtotal))
- print("Descuento = {0}".format(Descuento))
- print("Total = {0}".format(Total))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement