function top_test ( )

%*****************************************************************************80
%
%% top_test() tests top().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 January 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'top_test():\n' );
  fprintf ( 1, '  top() estimates winning ratios for dreidel\n' );
  fprintf ( 1, '\n' );
  for k = 2 : 5
    winnings = top ( k );
    fprintf ( 1, '  %2d:  ', k );
    for i = 1 : k
      fprintf ( 1, '  %g', winnings(k) );
    end
    fprintf ( 1, '\n' );
  end

  return
end

