Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/Array-length/Robotic/array-length-1.robotic
Normal file
5
Task/Array-length/Robotic/array-length-1.robotic
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
set "index" to 0
|
||||
set "$array&index&" to "apple"
|
||||
inc "index" by 1
|
||||
set "$array&index&" to "orange"
|
||||
* "Array length: ('index' + 1)"
|
||||
8
Task/Array-length/Robotic/array-length-2.robotic
Normal file
8
Task/Array-length/Robotic/array-length-2.robotic
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
set "index" to 0
|
||||
set "local1" to random 1 to 99
|
||||
: "rand"
|
||||
set "array&index&" to random 0 to 99
|
||||
inc "index" 1
|
||||
dec "local1" 1
|
||||
if "local1" > 1 then "rand"
|
||||
* "Array length: ('index')"
|
||||
Loading…
Add table
Add a link
Reference in a new issue