For loops work nicely with arrays, allowing you to easily craft a loop that iterates through valid indexes. The simplest version loops from 0, while the index variable is less than the size of the array.
The following image illustrates how the for loop allows you to iterate across the indexes of the array.