function lo_print ( L, label );

%*****************************************************************************80
%
%% lo_print() prints the current Lights Out status.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 November 2024
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    logical L(M,N), true where lights are on.
%
%    string label: a label for the report.
%
  m = 5;
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, '%s\n', label );
  fprintf ( 1, '\n' );

  for i = 1 : m
    fprintf ( 1, ' ' );
    for j = 1 : n
      if ( L(i,j) )
        fprintf ( 1, ' *' );
      else
        fprintf ( 1, ' .' );
      end
    end
    fprintf ( 1, '\n' );
  end

  return
end

