26 lines
871 B
Plaintext
26 lines
871 B
Plaintext
Show a nested loop which searches a two-dimensional array filled with random numbers uniformly distributed over <math>[1,\ldots,20]</math>.
|
|
|
|
The loops iterate rows and columns of the array printing the elements until the value <math>20</math> is met.
|
|
|
|
Specifically, this task also shows how to [[Loop/Break|break]] out of nested loops.
|
|
|
|
|
|
;Related tasks:
|
|
* [[Loop over multiple arrays simultaneously]]
|
|
* [[Loops/Break]]
|
|
* [[Loops/Continue]]
|
|
* [[Loops/Do-while]]
|
|
* [[Loops/Downward for]]
|
|
* [[Loops/For]]
|
|
* [[Loops/For with a specified step]]
|
|
* [[Loops/Foreach]]
|
|
* [[Loops/Increment loop index within loop body]]
|
|
* [[Loops/Infinite]]
|
|
* [[Loops/N plus one half]]
|
|
* [[Loops/Nested]]
|
|
* [[Loops/While]]
|
|
* [[Loops/with multiple ranges]]
|
|
* [[Loops/Wrong ranges]]
|
|
<br><br>
|
|
|