<meta charset= "utf-8">
<h3>Alcohol o gasolina?</h3>
<script>
var litrosPorTanque = 40;
var kilometrosRecorridos = 480;
var consumoDeGasolina = kilometrosRecorridos/litrosPorTanque;
document.write("El consumo de gasolina es: " + consumoDeGasolina);
document.write("<br>");
document.write("<br>");
kilometrosRecorridos = 300;
var consumoDeAlcohol = kilometrosRecorridos/litrosPorTanque;
document.write("El consumo de alcohol es: " + consumoDeAlcohol);
</script>