# EJERCICIO 1: Factura simple

producto = "Cuaderno"
precio = 7.50
cantidad = 3


subtotal = precio * cantidad

print("FACTURA")
print(f"Producto: {producto}")
print(f"Precio unitario: ${precio:.2f}")
print(f"Cantidad: {cantidad}")
print(f"Subtotal: ${subtotal:.2f}")
# EJERCICIO 2: Cálculo de IVA

IVA = 0.15

precio = 100.00

impuesto = precio * IVA
total = precio + impuesto

print("CÁLCULO DE IVA")
print(f"Precio: ${precio:.2f}")
print(f"IVA (15%): ${impuesto:.2f}")
print(f"Total a pagar: ${total:.2f}")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: