RosettaCodeData/Task/Loops-Nested/Scilab/loops-nested.scilab

11 lines
191 B
Plaintext

ni=3;nj=4
t=int(rand(ni,nj)*20)+1
for i=1:ni
for j=1:nj
printf("%2d ",t(i,j))
if t(i,j)==11 then break; end
end
printf("\n")
if t(i,j)==11 then break; end
end