<meta charset="UTF-8">
<h3>¿Alcohol o gasolina?</h3>
<br>
<br>
<script>
var tanque = 40;
var kilometros = 480;
var consumo = kilometros/tanque;
document.write("<br>");
document.write("El consumo de gasolina es de: " + consumo + " klm/l");
document.write("<br>");
var kilometros_alcohol = 300;
var alcohol = kilometros_alcohol/tanque;
document.write("<br>");
document.write("El consumo de alcohol es " + alcohol + " klm/l");
</script>