Created
January 31, 2017 16:52
-
-
Save halzate93/facd1fea3998d2ad39cb49e22f1ebce8 to your computer and use it in GitHub Desktop.
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
var a = 0; | |
for (i = 2; i < process.argv.length; i++) | |
{ | |
var toAdd = parseInt(process.argv[i]); | |
a += toAdd; | |
} | |
console.log (a); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment