% bad_index1.m
%
%  What happens if we accidentally use the same variable 
%  for both the inner and outer loops?
%
for i = 1 : 5
  fprintf ( '  Outer I = %d\n', i );
  for i = 10 : 12
    fprintf ( '  Inner I = %d\n', i );
  end
end
