Felix

0 Reputation

One Badge

13 years, 160 days

MaplePrimes Activity


These are questions asked by Felix

Hi,

I would like to know how can I go out from two nested loops. I tried with the command 'break', but it go out only from the one loop. For example,

for i from 0 to 10 do

for j from 0 to 10 do

for z from 0 to 10 do

p:=i*j*z;

if p<=40 then print(p)

else break fi;

od; od;

Page 1 of 1