function gcd_values_test ( )

%*****************************************************************************80
%
%% gcd_values_test() tests gcd_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 December 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'gcd_values_test():\n' );
  fprintf ( 1, '  gcd_values() returns values of the greatest common factor function:\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     m     n      gcd(m,n)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, m, n, f ] = gcd_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %8d  %8d  %8d\n', m, n, f );

  end

  return
end
