<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque = 40;
var caminoConGasolina = 480;
var consumo de gasolina = caminoConGasolina/tanque;
document.write("La eficiencia del carro usando gasolina es" + consumoDeGasolina + " km/L");
var caminoConAlcohol = 300;
var consumoDeAlcohol = caminoConAlcohol/tanque;
document.write("La eficiencia del carro usando alchol es" + consumoDeAlcohol + " km/L");
</script>
</html>