function catalan_number_test ( )

%*****************************************************************************80
%
%% catalan_number_test() tests catalan_number().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 April 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'catalan_number_test():\n' );
  fprintf ( 1, '  catalan_number() computes a Catalan number.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  N    C(N)\n' );
  fprintf ( 1, '\n' );

  for n = 0 : 15

    c = catalan_number ( n );

    fprintf ( 1, '  %4d  %9d\n', n, c );

  end

  return
end
