break
break terminates the execution of for and while loops. In nested loops, break exits from the innermost loop only.
n.
while 1n = input('Enter n. n <= 0 quits. n = ')if n <= 0,break,endr = rank(magic(n))enddisp('That''s all.')
end,error,for,if,return,while
(c) Copyright 1994 by The MathWorks, Inc.