J = 1:2:10;
sum = 0;
for j = J
    sum = sum+j;
end
disp(sum);
