#include
#include
long jiecen(int m);
int main()
{
double x;
std::coutx;
double a=x/1;
int b=1;
double sum=0;
while(fabs(a)>0.00001)
{
sum=sum+a;
b=b+2;
a=(-1)*x*x / (jiecen(b));
}
std::cout
#include
#include
long jiecen(int m);
int main()
{
double x;
std::coutx;
double a=x/1;
int b=1;
double sum=0;
while(fabs(a)>0.00001)
{
sum=sum+a;
b=b+2;
a=(-1)*x*x / (jiecen(b));
}
std::cout