% hw015.m
% John Burkardt
% Print a pyramid of 5 rows.
%
for i = 1 : 5
  for j = 1 : 5 - i
    fprintf ( ' ' );
  end
  for j = 1 : 2 * i - 1
    fprintf ( '*' )
  end
  fprintf ( '\n' );
end
