Ejercicio sobre consumo de alcohol y gasolina.
<meta charset="utf-8" lang="es">
<h3>Alcohol o gasolina</h3>
<script>
var tanque = 40
document.write("consumo de gasolina");
document.write("<br>")
document.write(400/tanque + (" Km"));
document.write("<br>")
document.write("consumo de alcohol");
document.write("<br>")
document.write(300/40 + (" Km"));
</script>