You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var sum = 0;
|
|
for (var x = 0; x < 1000; x++)
|
|
{
|
|
if (x % 3 === 0 || x % 5 === 0)
|
|
{
|
|
sum += x;
|
|
}
|
|
}
|
|
console.log(sum);
|