function i4_fall_test ( )

%*****************************************************************************80
%
%% i4_fall_test() tests i4_fall().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    16 December 2014
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_fall_test():\n' );
  fprintf ( 1, '  i4_fall() evaluates the falling factorial function.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '         M         N      Exact         i4_fall(M,N)\n' );

  n_data = 0;

  while ( true )

    [ n_data, m, n, f1 ] = i4_fall_values ( n_data );

    if ( n_data == 0 )
      break
    end

    f2 = i4_fall ( m, n );

    fprintf ( 1, '  %8d  %8d  %12d  %12d\n', m, n, f1, f2 );

  end
 
  return
end
