<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque = 40;
var recorridoGasolina = 480;
var consumoGasolina = recorridoGasolina/tanque
var recorridoAlcohol = 300;
var consumoAlcohol = recorridoAlcohol/tanque
document.write("El consumo de gasolina por kilometro es: " + consumoGasolina + " km/l.");
document.write("<br>");
document.write("El consumo de alcohol por kilometro es: " + consumoAlcohol + " km/l.");
</script>