<meta charset="utf-8">
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque = 40
var distancia = 480
var consumo = distancia / tanque
document.write ("El consumo de gasolina es " + consumo + " km/litro");
document.write ("<br>");
document.write ("<br>");
distancia = 300
consumo = distancia / tanque
document.write ("El consumo de alcohol es " + consumo + " km/litro");
</script>