in reply to Re^3: Trying to get sum of elements in array
in thread Trying to get sum of elements in array

We've already established that this is a homework assignment. Perhaps uniqueness is one of the assignment's constraints?
  • Comment on Re^4: Trying to get sum of elements in array