<meta charset="UTF8">
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque = 40;
var Gasolina = 480;
var total = Gasolina/tanque;
var Alcohol = 300;
document.write("El consumo de gasolina es " + total + " km/L");
document.write("<br>");
var total = Alcohol/tanque;
document.write("Él consumo de alcohol es " + total + " km/L");
</script>