#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x,i,n;
double fact;
double sum=0,k=1;
x=-2;
i=0; sum=0; k=1;
while (fabs(k
)>=1.0E-9) { int j;
fact=1;
for (j=1;j<=i;++j)
fact*=j;
sum+=k;
++i;
}
return 0;
}
I2luY2x1ZGUgPG1hdGguaD4KI2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KaW50IG1haW4oKQp7CiAgIGludCB4LGksbjsKICAgIGRvdWJsZSBmYWN0OwogICAgZG91YmxlIHN1bT0wLGs9MTsKICAgIHg9LTI7CiAgICAgICAgICAgIGk9MDsgc3VtPTA7IGs9MTsKICAgICAgICAgICAgICAgIHdoaWxlIChmYWJzKGspPj0xLjBFLTkpIHsKICAgICAgICAgICAgICAgICAgICBpbnQgajsKICAgICAgICAgICAgICAgICAgICBmYWN0PTE7CiAgICAgICAgICAgICAgICAgICAgZm9yIChqPTE7ajw9aTsrK2opCiAgICAgICAgICAgICAgICAgICAgICAgIGZhY3QqPWo7CiAgICAgICAgICAgICAgICAgICAgaz1wb3coeCxpKS9mYWN0OwogICAgICAgICAgICAgICAgICAgIHN1bSs9azsKICAgICAgICAgICAgICAgICAgICArK2k7CiAgICAgICAgICAgICAgICAgICAgcHJpbnRmKCIlZCwlZlxuIixpLGspOwogICAgICAgICAgICAgICAgfQogICAgcHJpbnRmKCIlbGZcbiIsc3VtKTsKICAgIHJldHVybiAwOwp9
1,1.000000
2,-2.000000
3,2.000000
4,-1.333333
5,0.666667
6,-0.266667
7,0.088889
8,-0.025397
9,0.006349
10,-0.001411
11,0.000282
12,-0.000051
13,0.000009
14,-0.000001
15,0.000000
16,-0.000000
17,0.000000
18,-0.000000
0.135335