<meta charset="utf-8">
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque = 40;
var distanciaGasolina = 480;
var consumoGasolina = distanciaGasolina/tanque;
var distanciaAlcohol = 300;
var consumoAlcohol = distanciaAlcohol/tanque;
document.write("El carro consume " + consumoGasolina + " km/L de gasolina.")
document.write("<br>")
document.write("<br>")
document.write("El carro consume " + consumoAlcohol + " km/L de alcohol.")
</script>