in reply to Assigning value to the array elements
Could you show us what you expected the output to look like?