function collatz_test02 ( )

%*****************************************************************************80
%
%% collatz_test02() tests collatz_count().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 February 2006
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'collatz_test02():\n' );
  fprintf ( 1, '  collatz_count() computes the length of the Collatz sequence\n' );
  fprintf ( 1, '  for a given key.\n' );

  for key = 1 : 100
      
    n = collatz_count ( key );
    fprintf ( 1, '  %4d  %8d\n', key, n );

  end

  return
end
