formatted the array elements & the printing format