<meta charset="UFT-8">
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanqueGasolina = 40;
var tanqueAlcohol = 40;
var recorridoGasolina = 480;
var recorridoAlcohol = 300;
var consumoGasolina = recorridoGasolina / tanqueGasolina;
var consumoAlcohol = recorridoAlcohol / tanqueAlcohol;
document.write("el consumo de gasolina es: " + consumoGasolina + " km/L");
document.write("<br>");
document.write("el consumo de alcohol es: " + consumoAlcohol + " km/L");
</script>