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