<meta charset="UTF-8">
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque = 40;
var km_recorGasolina = 480;
var km_recorAlcohol = 300;
consumo_Gasolina = km_recorGasolina/tanque;
consumo_Alcohol = km_recorAlcohol/tanque;
document.write("<br>");
document.write("El consumo de gasolina es " + (consumo_Gasolina) + "Km/l");
document.write("<br>");
document.write("el consumo de alcohol es " + (consumo_Alcohol) + "Km/l");
</script>