x = zeros(1,6);
x(1) = 1;
for ii = 1:5
      for jj = 1:12-2*ii
          fprintf(' ')
      end
      for jj = 1:ii
          fprintf('%4d', x(jj))
      end
      fprintf('\n')
      x(2:end) = x(2:end) + x(1:end-1);
end
 
