function i4_max_test ( )

%*****************************************************************************80
%
%% i4_max_test() tests i4_max().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 March 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_max_test():\n' );
  fprintf ( 1, '  i4_max() returns the maximum of two I4''s.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '       A       B      C=I4_MAX(A,B)\n' );
  fprintf ( 1, '\n' );

  i4_lo = -100.0;
  i4_hi = +100.0;

  for i = 1 : 10
    a = randi ( [ i4_lo, i4_hi ], 1 );
    b = randi ( [ i4_lo, i4_hi ], 1 );
    c = i4_max ( a, b );
    fprintf ( 1, '  %8d  %8d  %8d\n', a, b, c );
  end

  return
end
