<meta charset="utf-8">
<h3>¿Alcohol o gasolina?</h3>
<script >
var tanque=40
var kmG=480
var lxkmG= kmG/tanque
document.write("Usando gasolina: "+lxkmG+"l/km")
document.write("<br>")
document.write("<br>")
var kmA =300
var lxkmA= kmA/tanque
document.write("Usando alcohol: "+lxkmA+"l/km")
</script>