RosettaCodeData/Task/Loops-Nested/Scilab/loops-nested.scilab
2015-11-18 06:14:39 +00:00

10 lines
191 B
Text

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