function derange_enum_test ( )

%*****************************************************************************80
%
%% DERANGE_ENUM_TEST tests DERANGE_ENUM.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'DERANGE_ENUM_TEST\n' );
  fprintf ( 1, '  DERANGE_ENUM counts derangements;\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  N    # of derangements\n' );
  fprintf ( 1, '\n' );

  for i = 0 : n
    fprintf ( 1, '  %8d  %8d\n', i, derange_enum(i) );
  end

  return
end
