Hello. I'm new to C++ programming and I'm struggling with quite a hard (at least to me) task. I have to make a program that sums Sn=1-1/2+1/3-1/4+...+1/9999-1/10000 in different cases:
a) Sum it from left to right.
b) Sum it from right to left.
c) Sum it from left to right, but positive and negative numbers separately.
d) Sum it from right to left, but positive and negative numbers separately.