Created
May 3, 2015 03:37
-
-
Save sheniff/5248ab2a920196851734 to your computer and use it in GitHub Desktop.
Spoiler Alert: Project Euler 1
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 sum = 0; | |
| for (var i = 0; i < 1000; i++) { | |
| if(i % 3 === 0 || i % 5 === 0) { | |
| sum += i; | |
| } | |
| } | |
| console.log(sum); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment