Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Arrays/Robotic/arrays-1.robotic
Normal file
9
Task/Arrays/Robotic/arrays-1.robotic
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
set "index" to 0
|
||||
. "Assign random values to array"
|
||||
: "loop"
|
||||
set "array&index&" to random 0 to 99
|
||||
inc "index" by 1
|
||||
if "index" < 100 then "loop"
|
||||
|
||||
* "Value of index 50 is ('array('50')')."
|
||||
end
|
||||
13
Task/Arrays/Robotic/arrays-2.robotic
Normal file
13
Task/Arrays/Robotic/arrays-2.robotic
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
set "xx" to 0
|
||||
set "yy" to 0
|
||||
. "Assign random values to array"
|
||||
: "loopX"
|
||||
set "array&xx&,&yy&" to random 0 to 99
|
||||
inc "xx" by 1
|
||||
if "xx" < 32 then "loopX"
|
||||
set "xx" to 0
|
||||
inc "yy" by 1
|
||||
if "yy" < 32 then "loopX"
|
||||
|
||||
* "Value of 16,16 is ('array('16'),('16')')."
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue