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