function ten_years_test ( )

%*****************************************************************************80
%
%% ten_years_test() tests ten_years().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 January 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ten_years_test():\n' );
  fprintf ( 1, '  ten_years() estimates the probability that a certain\n' );
  fprintf ( 1, '  person will still be alive in 1, 2, ..., 10 years.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Years  Probability\n' );
  fprintf ( 1, '\n' );
 
  for years = 0 : 10
    prob = ten_years ( years );
    fprintf ( 1, '  %2d  %g\n', years, prob );
  end

  return
end

