First, declare something like this:
Then the end of the loop should check for negativity like this: If it's greater than 0, add value to postotal, else add value to negtotal.Code:double value, postotal, negtotal;
Then close the loop and have it display the positive and negative totals using the correct variables.