function i4_to_triangle_lower_test ( )

%*****************************************************************************80
%
%% I4_TO_TRIANGLE_LOWER_TEST tests I4_TO_TRIANGLE_LOWER.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_TO_TRIANGLE_LOWER_TEST\n' );
  fprintf ( 1, '  I4_TO_TRIANGLE_LOWER converts a linear index to a\n' );
  fprintf ( 1, '  lower triangular one.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '   K  =>   I   J\n' );
  fprintf ( 1, '\n' );

  for k = 1 : 20

    [ i, j ] = i4_to_triangle_lower ( k );

    fprintf ( 1, '  %4d    %4d  %4d\n', k, i, j );

  end

  return
end
