<!DOCTYPE html>
<html lang="pt">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Álcool ou Gasolina ?</title>
</head>
<body>
<h3>Álcool ou Gasolina ?</h3>
<script>
const tanque = 40;
let caminhoComGasolina = 480;
let caminhoComAlcool = 300;
consumoDeGasolina = caminhoComGasolina/tanque;
consumoDeAlcool = caminhoComAlcool/tanque;
document.write("O Consumo de Gasolina é: " + consumoDeGasolina +" litros/km <br><br>");
document.write("O Consumo de Álcool é: " + consumoDeAlcool +" litros/km");
</script>
</body>
</html>