<meta charset="utf-8">
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque = 40;
var kmGasolina = 480;
var consumoGasolina = kmGasolina / tanque ;
var kmAlcohol = 300;
var consumoAlcohol = kmAlcohol / tanque ;
document.write("El consumo del vehiculo con Gasolina es " + consumoGasolina + " Kms x litro");
document.write("<br>")
document.write("El consumo del vehiculo con Alcohol es " + consumoAlcohol + " Kms x litro");
</script>