Created
          March 12, 2012 08:49 
        
      - 
      
 - 
        
Save egeozcan/2020770 to your computer and use it in GitHub Desktop.  
    Answer to 6th problem on project Euler
  
        
  
    
      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, n, sum = 0; | |
| for(i = 1; i < 100; i++) { | |
| for(n = 100; n > i; n--) { | |
| sum += n * i | |
| } | |
| } | |
| console.log("result is: " + (sum * 2)); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment