Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Arrays/KonsolScript/arrays.konsol
Normal file
11
Task/Arrays/KonsolScript/arrays.konsol
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
//creates an array of length 3
|
||||
Array:New array[3]:Number;
|
||||
|
||||
function main() {
|
||||
Var:Number length;
|
||||
Array:GetLength(array, length) //retrieve length of array
|
||||
Konsol:Log(length)
|
||||
|
||||
array[0] = 5; //assign value
|
||||
Konsol:Log(array[0]) //retrieve value and display
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue