Created
December 6, 2009 01:30
-
-
Save aarongustafson/249967 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 square( n ) | |
{ | |
return n * n | |
}; | |
var i=10000, sum = 0; | |
while ( i-- ) | |
{ | |
sum += square( i ); | |
} |
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 i=10000, sum = 0; | |
while ( i-- ) | |
{ | |
sum += i * i | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment