The assignment statement allows you to store a value in a variable. This can now be extended to allow you to store a value in an element of an array. To achieve this, you indicate the array as well as the index of the element you want to store the value in.
Assigning a value to an element of the array
Example
The following example creates two arrays, and assigns values to their elements.