function i4mat_max_test ( )

%*****************************************************************************80
%
%% i4mat_max_test() tests i4mat_max().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 October 2014
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 7;
  b = 0;
  c = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4mat_max_test():\n' );
  fprintf ( 1, '  i4mat_max() returns the maximum;\n' );
 
  a = randi ( [ b, c ], m, n );
 
  i4mat_print ( m, n, a, '  Random array:' );
 
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Maximum entry = %d', i4mat_max ( m, n, a ) );

  return
end
