Loops/Nested: Difference between revisions
→{{header|Scilab}}: Section added
(→{{header|Rust}}: stable Rust) |
PatGarrett (talk | contribs) (→{{header|Scilab}}: Section added) |
||
Line 2,040:
(display " ")(display (car b))
(loop2 (cdr b)))))))</lang>
=={{header|Scilab}}==
{{works with|Scilab|5.5.1}}
<lang>
t=[1,2,3,4;5,6,7,8;9,10,11,12]
ni=3;nj=4
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
</lang>
{{out}}
<pre style="height:20ex">
1 2 3 4
5 6 7 8
9 10 11
</pre>
=={{header|Seed7}}==
|