<meta charset="UTF-8">
<h3>¿Alcohol o Gasolina?</h3>
<script>
var tanque = 40;
var gasolina = 480;
var consumoGasolina = gasolina/tanque;
var alcohol = 300;
var consumoAlcohol = alcohol/tanque;
document.write("El consumo de gasolina es " + consumoGasolina + " km/L");
document.write("<br>");
document.write("Él consumo de alcohol es " + consumoAlcohol + " km/L");
</script>