top of page

Arrays - Store data in Dimensional Array

 

 

Array is known as special variable, which can hold more than one value at a time.

 

Arrays hold lists of variables of the same data type. When including large lists of variables and data, it is easier to contain the data in an array than have large amounts of separate variables to hold the data

Please watch this video

CODES ARRAY ANNOTATED

PRINT “PROGRAM: ARRAY”

 

DIM NAMES (10) AS STRING

 

DIM X AS INTEGER

 

CLS

 

NAMES (1) = “LEVI”

 

NAMES (2) = “DAVID”

 

NAMES (3) = “MICHAEL”

 

NAMES (4) = “KYLIE”

 

NAMES (5) = “JENNY”

 

NAMES (6) = “SUSAN”

 

NAMES (7) = “JAKE”

 

NAMES (8) = “LISA”

 

NAMES (9) = “NATHAN”

 

NAMES (10) = “GEORGIA”

 

FOR X = 1 TO 10

 

PRINT NAMES (X)

 

NEXT X

 

END

bottom of page