Skip to content

Instantly share code, notes, and snippets.

@arcanite24
Created July 3, 2017 01:20
Show Gist options
  • Save arcanite24/9f554a2eb6f767a9101bb82402614890 to your computer and use it in GitHub Desktop.
Save arcanite24/9f554a2eb6f767a9101bb82402614890 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