Created
November 3, 2020 18:10
-
-
Save gabizinha12/33f50eca6b6051186c54ba4948fe680c to your computer and use it in GitHub Desktop.
This file contains 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
function somaDeGauss(numeroMaximo) { | |
const array = new Array(numeroMaximo).fill(0) | |
let soma = 0 | |
array.map((value, index) => { | |
soma += (index + 1) | |
}) | |
console.log(soma) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment