%% table_script prints a table of the squares and cubes of the integers.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 December 2019
%
%  Author:
%
%    John Burkardt
%
fprintf ( 1, '\n' );
fprintf ( 1, 'table_script\n' );
fprintf ( 1, '  A MATLAB script to print a short table.\n' );
fprintf ( 1, '\n' );
fprintf ( 1, '           N   N-squared     N-cubed\n' );
fprintf ( 1, '\n' );
for i = 0 : 10
  fprintf ( 1, '  %10d  %10d  %10d\n', i, i^2, i^3 );
end
%
%  Terminate.
%
fprintf ( 1, '\n' );
fprintf ( 1, 'table_script\n' );
fprintf ( 1, '  Normal end of execution.\n' );

exit ( );

