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