<meta charset="utf-8">
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque=40;
var kmConGasolina=480;
document.write("El consumo de gasolina es: " + (kmConGasolina/tanque) + " km/L");
document.write("<br>");
var kmConAlcohol= 300;
document.write("El consumo de alcohol es: " + (kmConAlcohol/tanque) + " km/L");
</script>