% Project Euler Problem 1

the_sum = 0;
for i=1:999
    if ((mod(i,3)==0) | (mod(i,5)==0))
        the_sum = the_sum + i;
    end
end
fprintf('the sum is %d\n', the_sum);
