The element access expression
Note the syntax of the expression that is highlighted in boldface in Listing 3.
This expression uses the subscript operator, [], along with the value of the loop counter to store an input value provided by the user into the array element whose index matches the value of the loop counter.