Problem 1

Multiples of 3 or 5

Problem 1

Find the sum of all the multiples of 3 or 5 below 1000

Tentativa 1

Diminuindo para abaixo de 10 Seria 3, 5, 6, 9 Soma 3 + 5 + 6 + 9 = 23

Tenho que fazer um loop até 1000 Verificar individualmente se é multiplo de 3 ou 5

JavaScript REPL

© 2025