<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 de: " + consumoGasolina + " litros/km");
document. write("<br>");
document. write("<br>");
document.write("El consumo de alcohol es de: " + consumoAlcohol + " litros/km");
</script>