Last active
December 26, 2015 17:59
-
-
Save thetallweeks/7191518 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
function SimpleAdding(num) { | |
var total = 0; | |
for(i = 1; i <= num; i++) { | |
total += i; | |
} | |
// code goes here | |
return total; | |
} | |
// keep this function call here | |
// to see how to enter arguments in JavaScript scroll down | |
SimpleAdding(readline()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment