Project Euler Problem 1
by cantofunebre
JavaScript
var total = 0;
for (i = 1; i < 1000; i++) {
if ((i % 3 === 0) || (i % 5 === 0)) {
total += i;
}
}
console.log(total);
by cantofunebre
var total = 0;
for (i = 1; i < 1000; i++) {
if ((i % 3 === 0) || (i % 5 === 0)) {
total += i;
}
}
console.log(total);