A Pen by José Antônio Gomes on CodePen.
Created
October 24, 2025 18:29
-
-
Save jose35info/f0feaa79eade81c27ab44f9c488bb2da to your computer and use it in GitHub Desktop.
resoluçao do problema "Consumo"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let Dtp=500; | |
| let combustivelGasto=38.5; | |
| let consumoMedio= Dtp/combustivelGasto; | |
| console.log(consumoMedio.toFixed(3)) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calcular o consumo médio
primeiro variavél Distancia Percorrida
Depois combustivel Gasto e depois Divide valor gasto por distancia