Skip to content

Instantly share code, notes, and snippets.

@jose35info
Created October 24, 2025 18:29
Show Gist options
  • Select an option

  • Save jose35info/f0feaa79eade81c27ab44f9c488bb2da to your computer and use it in GitHub Desktop.

Select an option

Save jose35info/f0feaa79eade81c27ab44f9c488bb2da to your computer and use it in GitHub Desktop.
resoluçao do problema "Consumo"
let Dtp=500;
let combustivelGasto=38.5;
let consumoMedio= Dtp/combustivelGasto;
console.log(consumoMedio.toFixed(3))
@jose35info
Copy link
Author

Calcular o consumo médio
primeiro variavél Distancia Percorrida
Depois combustivel Gasto e depois Divide valor gasto por distancia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment