Created
January 7, 2017 08:13
-
-
Save kkrishan/d7d73c4e13c3f32195ab7acdf6ea4088 to your computer and use it in GitHub Desktop.
Eulers'Problem1
This file contains 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=3;i<1000;i++){ | |
if (i%3 === 0 || i%5 === 0){ | |
sum = sum + i; | |
} | |
}; | |
console.log("sum is " + sum) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment