function L = checkRows( A,n )
% CHECKROWS returns true if the sum of each and every  row in the matrix A
% mod n is zero
sa = sum( A , 2 ) ;   % sum of the rows
sm = mod( sa , n) ==0 ;
L = sum( sm ) == length(sa) ;  % logical value
end

