I have to print out the numbers -2.3 to 2.9 in increments of 0.4, and then add the poss and neg number
EX:
-2.3 -1.9 -1.5 -1.1 -0.7 -0.3 0.1 0.5 0.9 1.3 1.7 2.1 2.5 2.9
Sum of negative values: -7.8
Sum of positive values: 12
i have gotten a little father than this but my code is all over the board.
#include <iostream.h>
int main() {
for (float counter=-2.3; counter <= 3.0; counter+=.4)
cout << counter << " ";
return 0;
}