Skip to content

Instantly share code, notes, and snippets.

@sifue
Created June 5, 2017 05:20
Show Gist options
  • Save sifue/f1261f832e7773e6b30942f0ff6b0713 to your computer and use it in GitHub Desktop.
Save sifue/f1261f832e7773e6b30942f0ff6b0713 to your computer and use it in GitHub Desktop.
プロジェクトオイラー問題1
let sum = 0;
for (let i = 1; i < 1000; i++) {
if (i % 3 === 0 || i % 5 === 0) sum = sum + i;
}
console.log(sum);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment