<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<h3>Álcool ou Gasolina?</h3>
</html>
<script>
var tanque = 40;
var caminhoComGasolina = 480;
var consumoDeGasolina = caminhoComGasolina/tanque;
document.write(" O consumo de Gasolina é " + consumoDeGasolina + "km/L");
document.write("<br>");
var caminhoComAlcool = 300;
var consumoDeAlcool = caminhoComAlcool/tanque;
document.write("<br>");
document.write("O consumo de álcool é" + consumoDeAlcool + "km/L");
</script>