You are on page 1of 1

onkeypress="return soloLetras(event)"

tv box a5x max

decimal cantidad = Convert.ToDecimal(txtcantidad.Text);


decimal precio = Convert.ToDecimal(txtprecio.Text);
decimal subtotal;
decimal iva;
decimal pago;
subtotal = (cantidad * precio);
txtsubtotal.Text = Convert.ToString(subtotal);
iva = (subtotal * 14) / 100;
txtiva.Text = Convert.ToString(iva);
pago = (iva + subtotal);
txttotal.Text = Convert.ToString(pago);

You might also like