LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

How to assign value to every element in array smilebasic3

Root / Programming Questions / [.]

bluemonkey1111Created:
DIM ARRAY[13]
I have an array like so I want every element to have a value equal to itโ€™s number Basically, I want something that functions like this:
ARRAY[1]=1
ARRAY[2]=2
ARRAY[3]=3
...
But as a loop kinda thing Sorry if that confused you, Iโ€™m kind of a beginner at this even though Iโ€™ve been here years

FOR I=0 TO 12
 ARRAY[I]=I
NEXT
This code changes the value of I from 0 to 12 and does ARRAY[I]=I.

It worked. Thanks!