
function total = csum(a,b)
    total = 0;
    for i=a:b
        total = total + i;
    end
end

tic
for i=1:10
    myresults(i) = csum(1,i);
end
toc