<meta charset="UTF-8">
<h3>¿Alcohol o gasolina?</h3>
<script>
var tanque= 40;
var recorrido= 480;
var consumogasolina= (recorrido/tanque);
document.write("el consumo de gasolina es"+ consumogasolina + "Km/L");
document.write("<br>")
document.write("<br>")
var recorridoalcohol= 300
var consumoalcohol=(recorridoalcohol/tanque)
document.write("el consumo de alcohol es" + consumoalcohol + "Km/L")
</script>