O 1 + 1/3 + 1/9 + 1/11-1/5-1/7 -... Until the last item on the absolute value of less than 10 - six times the power how to use c + + programming so far
CodePudding user response:
Oneself for loop good In addition, the two are, the law of the two negative cycle? Or a plus or minus alternate rule a slip of the pen?
CodePudding user response:
Direct write debugging
Double a=1, s=a, t=1/(a +=2); Int j=0; While (t> E - 10 6) { S +=(+ + j> 2? - t, t); If (j> J=0=4); T=1/(a +=2); }
CodePudding user response:
Add and subtract items to adjust: j=0; j=1; J=2; J=3;