Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



break for and while loop
Posted:
Jul 11, 2012 12:43 PM


Hi: How I can break and come out from two for and one while loop in the following condition. It only break one for loop. Thanks for your help.
n=19; a = 1; while (a<n); for j = 1:4; for i = 1:3 a = a +1; if (a>n);break; end; end end end
Regards, r



