Loops/Nested: Difference between revisions
Content added Content deleted
PatGarrett (talk | contribs) m (→{{header|Scilab}}: Blanks suppressed) |
PatGarrett (talk | contribs) (→{{header|Scilab}}: With random numbers) |
||
Line 2,043: | Line 2,043: | ||
=={{header|Scilab}}== |
=={{header|Scilab}}== |
||
{{works with|Scilab|5.5.1}} |
{{works with|Scilab|5.5.1}} |
||
<lang> |
<lang>ni=3;nj=4 |
||
t=int(rand(ni,nj)*20)+1 |
|||
ni=3;nj=4 |
|||
for i=1:ni |
for i=1:ni |
||
for j=1:nj |
for j=1:nj |
||
Line 2,054: | Line 2,054: | ||
end</lang> |
end</lang> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> 5 18 19 8 |
||
5 |
5 14 5 6 |
||
5 7 7 12 </pre> |
|||
=={{header|Seed7}}== |
=={{header|Seed7}}== |