function i4_sqrt_test ( )

%*****************************************************************************80
%
%% I4_SQRT_TEST tests I4_SQRT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_SQRT_TEST\n' );
  fprintf ( 1, '  I4_SQRT computes the square root of an integer.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '       N  Sqrt(N) Remainder\n' );
  fprintf ( 1, '\n' );

  for n = -5 : 20

    [ q, r ] = i4_sqrt ( n );
    fprintf ( 1, '  %7d  %7d  %7d\n', n, q, r );

  end

  return
end
