Last active
October 6, 2022 12:36
-
-
Save gydoma/e999be193299e2c1dec1e64d5ecbadda 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
var lista1 = new Array(10,20,30,-10,-20,-30,69); | |
var sum = 0; | |
function osszegzes(lista, sum) { | |
for(let i=0;i<lista.length;i++){ | |
sum+=lista[i]; | |
} | |
console.log("A Bemeneti lista összege: "+ sum) | |
} | |
osszegzes(lista1,sum) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment