% nestedLoop2.m    Illustrate nested for loop
% P. Conrad for CISC106, 10/14/2007

% use a nested loop that prints out value of i and j

for i=1:4
  for j=1:5
    fprintf('(%d,%d) ',i,j);
  end
  fprintf('\n');
end

% end nestedLoop2.m
