The first thing you should do when faced with a programming problem is to try and break it down into a series of steps. Then you can code and test each step in turn.
1. Read 5 numbers from the user
2. Iterate over each element of the array
3. If an element is positive, add it to the sum of positive values
4. If an element is negative, add it to the sum of negative values
5. Display the values of the two sums.