CodePudding user response:
Use a for loop, the end condition is given in the titleCodePudding user response:
The while loop is used to better don't know how specificDefine the s=0, flog=1; X=3; Y=2;
The loop body
S +=(x * flog)/(y * y);
Flog=- flog;
X +=2;
Y +=2;
This topic is not difficult, mainly to find the rule of the law, is a basic formula, and then change the variable's value