Created
July 3, 2017 01:43
-
-
Save arcanite24/50d4b84af6c00357bdcb8eacb64fac0e to your computer and use it in GitHub Desktop.
Post 1 - Solución 1 - Project Euler #1
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
function sumaMultiplos3y5() { | |
var suma = 0; | |
for (var i = 0; i < 1000; i++) { | |
if (i % 3 == 0 || i % 5 == 0) { | |
suma += i; | |
} | |
} | |
return suma; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment