Thursday, 17 November 2016

Programming- Arrays

Arrays

An Array is a data structure that stores many items using a single variable.
An Array is like lots of boxes held together in a named variable. Each box has a position:

Dim Numbers(4) As Integer

the number 4 indicates the size of the Array.

Dim Exammarks(5) As single

Exammarks(0)= console.readline()
Exammarks(1)= console.readline()
...

It is useful to make use of For loops to easily imput the data into the Array.

No comments:

Post a Comment