m=50;c=10;tol=m-c;while tol>0 c=c+5; tol=m-c; if tol<0; break else disp 'amacam?' end disp ('Table for iteration');disp (' m c tol '); format shortG disp ([m',c',tol',]); end
**I want to stop the looping at 5th iteration wihout considering the value of tol. Can somebody help?
Best Answer