function triangle_num_test ( )

%*****************************************************************************80
%
%% triangle_num_test() tests triangle_num().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 October 2008
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_num_test():\n' );
  fprintf ( 1, '  triangle_num() computes the triangular numbers.\n' );
  fprintf ( 1, '\n' );
 
  for n = 1 : 10
    fprintf ( 1, '  %2d  %6d\n', n, triangle_num ( n ) );
  end

  return
end
