% Nested loops question
% Print-and-pause to aid in tracing code
clc

n=3;  m=4;
for a = 1:n
   fprintf('a=%d    alpha\n', a)
   pause
   for b = 1:m
      fprintf('    b=%d beta\n', b)
      pause
   end
end

