Write the steps to follow (an algorithm) to read in ten whole numbers and to output the sum of all the numbers greater than zero, the sum of all the numbers less than zero, and the sum of all the numbers. The User enters the ten numbers just once each and the user can enter them in any order. Your solution should not ask the user to enter the positive numbers and the negative numbers separately.
Try use ++i (pre-increment) instead of i++ (post-increment) it makes your loops at lot easier to debug if you use the index variable in your loop. Try only to use i++
if the situations that really demands it. This is just preference tho, however it might save you some trouble in the future =)