Project Euler 1st Question Answer

Project Euler 1st Question Answer

Project Euler 1st Question Answer

 We can solve Project Euler's 1st question very easily using Python and loops.

toplam = 0
x = 0
for x in range(1000):
    if (x % 3 == 0) or (x % 5 == 0):
        toplam += x
print(toplam)

When you perform the operation above on your computer, you can easily find the answer.

Click here to see the correct answer.