function digit_dec_test ( )

%*****************************************************************************80
%
%% digit_dec_test() tests digit_dec().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 August 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'digit_dec_test():\n' );
  fprintf ( 1, '  digit_dec() decrements a decimal digit stored\n' );
  fprintf ( 1, '  as a character.\n' );
  fprintf ( 1, '\n' );
 
  c = '9';
  for i = 1 : 11
    c2 = digit_dec ( c );
    fprintf ( 1, '  "%c"  "%c"\n', c, c2 );
    c = c2;
  end
 
  return
end
