function i4vec_part1_test ( )

%*****************************************************************************80
%
%% i4vec_part1_test() tests i4vec_part1().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 November 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4vec_part1_test():\n' );
  fprintf ( 1, '  i4vec_part1() partitions an integer N into NPART parts.\n' );

  n = 17;
  npart = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Partition N = %d into NPART = %d parts:\n', n, npart );
  fprintf ( 1, '\n' );

  x = i4vec_part1 ( n, npart );

  for i = 1 : npart
    fprintf ( 1, '  %2d  %2d\n', i, x(i) );
  end

  return
end
