10 lines
121 B
JavaScript
10 lines
121 B
JavaScript
let sum = 0;
|
|
|
|
for (let i = 0; i < 1000; ++i) {
|
|
if (i % 3 == 0 || i % 5 == 0) {
|
|
sum = sum + i;
|
|
}
|
|
}
|
|
|
|
console.log(sum);
|