8 lines
120 B
Python
8 lines
120 B
Python
result = 0
|
|
|
|
for num in range(1000):
|
|
if (num % 5 == 0 or num % 3 == 0):
|
|
result = result + num
|
|
|
|
print(result)
|