<meta charset="utf-8">
<h3>Alcool ou Gasolina?</h3>
<script>
var tanque = 40;
var caminhoComGasolina = 480;
var caminhocomAlcool = 300;
var consumoDeAlcool = (caminhocomAlcool / tanque) ;
var consumoDeGasolina = (caminhoComGasolina / tanque) ;
document.write (" A media de consumo de gasolina e "+ (consumoDeGasolina)+" KM/L.");
document.write("<br>")
document.write("A media de consumo de alcool e "+ (consumoDeAlcool)+" KM/L.");
</script>