7 lines
99 B
Lua
7 lines
99 B
Lua
sum = 0
|
|
for i=1,999 do
|
|
if i % 3 == 0 or i % 5 == 0 then
|
|
sum = sum + i
|
|
end
|
|
end
|
|
print(sum) |