Skip to content

Instantly share code, notes, and snippets.

@arcanite24
Created July 3, 2017 01:43
Show Gist options
  • Save arcanite24/50d4b84af6c00357bdcb8eacb64fac0e to your computer and use it in GitHub Desktop.
Save arcanite24/50d4b84af6c00357bdcb8eacb64fac0e to your computer and use it in GitHub Desktop.
Post 1 - Solución 1 - Project Euler #1
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