%uppg 1.15


for x=[500 2000]
    a=0;
    for y = 0:x
        a = a+y;
    end
    a
end