function [ R ] = HW6_ArbAdd(A,B)
%ArbAdd Add two Array Elements together
%   This is simply grade school summation of large numbers. 

N=length(A);
R=zeros(N,1);
for nn=N:-1:1
    
    %Add everything in right column
    T=R(nn)+A(nn)+B(nn);
    
    %keep remainder for this column
    R(nn)=rem(T,10);
    
    %Add multiples of 10 to next column
    if nn>1
        R(nn-1)=(T-R(nn))/10;
    end
    
end

end

