David W Parker - Developer

home

Project Euler #1

published on

In JavaScript:

var total = 0;
for (var i = 0; i < 1000; i++){
  if ((i % 3 === 0) || (i % 5 === 0)){
    total += i;
  }
}
document.write(total);

on GitHub

Questions? E-mail me: this domain AT gmail DOT com