<meta charset="UTF-8">
<h3>¿Alcohol o gasolina?</h3>
<script>
var gasolinaLitros = 40;
var distanciaRecorrida = 480;
var consumoGasolina = distanciaRecorrida/gasolinaLitros;
document.write("El consumo de gasolina es: " + consumoGasolina + " Km.")
document.write("<br>")
var alcoholLitros = 40;
var distanciaRecorrida = 300;
var consumoAlcohol = distanciaRecorrida/gasolinaLitros;
document.write("El consumo de alcohol es: " + consumoAlcohol + " Km.")
</script>