% hw016.m
% John Burkardt
% Print a table of greatest common divisors for numbers between P and Q.
%
p = input ( '  Enter P: ' );
q = input ( '  Enter Q: ' );

for i = p : q
  for j = p : q
    fprintf ( ' %4d', gcd ( i, j ) )
  end
  fprintf ( '\n' )
end
