function mountain_test ( )

%*****************************************************************************80
%
%% mountain_test() tests mountain().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 January 2021
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, ' \n' );
  fprintf ( 1, 'mountain_test():\n' );
  fprintf ( 1, '  mountain() computes mountain numbers.\n' );
  fprintf ( 1, ' \n' );
  fprintf ( 1, '      X = 0   1   2   3   4   5   6   7   8   9  10\n' );
  fprintf ( 1, '   Y       \n' );
  fprintf ( 1, ' \n' );

  for y = 0 : n
    fprintf ( 1, '  %2d   ', y );
    for x = 0 : 2 * n
      mxy = mountain ( n, x, y );
      fprintf ( 1, '%4d', mxy );
    end
    fprintf ( 1, '\n' );
  end

  return
end
