Where is the array that you want to manipulate in your code?

For loops are good for populating arrays but first you must have an array to populate. In the code that you have posted in the OP, your...