Help accumilative variables
Ok I'm tryin to add numbers together but just add the total of negative and then the total of positive numbers.
Code:
value = -2.3;
while (value <= 2.9) {
cout << value << " ";
value = value + .4;
Now after this I'm tryin to just add the negative and then the positive but I am not sure. I will have the negative variable as neg and the positive variable as pos. I am not sure how to make it only read the neg/pos numbers. I know that greater or lesser but just don't know how to set it up.