<meta charset="utf-8">
<h3>Álcool ou Gasolina</h3>
<script type="text/javascript">
var tanque = 40;
var caminhoComGasolina = 480;
var consumoDeGasolina = caminhoComGasolina / tanque;
var caminhoComAlcool = 300;
var consumoDeAlcool = caminhoComAlcool / tanque;
document.write("O consumo de Gasolina é: " + consumoDeGasolina + " km/l");
document.write("<br>");
document.write("O consumo de Álcool é: " + consumoDeAlcool + " km/l");
</script>