Jump to content

Loops/Nested: Difference between revisions

→‎{{header|Scilab}}: With random numbers
m (→‎{{header|Scilab}}: Blanks suppressed)
(→‎{{header|Scilab}}: With random numbers)
Line 2,043:
=={{header|Scilab}}==
{{works with|Scilab|5.5.1}}
<lang>tni=[1,2,3,4;5,6,7,8;9,10,11,12]nj=4
t=int(rand(ni,nj)*20)+1
ni=3;nj=4
for i=1:ni
for j=1:nj
Line 2,054:
end</lang>
{{out}}
<pre> 15 18 219 3 48
5 14 6 5 7 86
95 10 117 7 12 </pre>
 
=={{header|Seed7}}==
1,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.