int main int argc char argv double sum double chisl double znam double

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
int main(int argc, char *argv[])
{
double sum=0,x;
double chisl=1;
double znam=2;
double e=0.00001;
int n=1;
printf("Input x: ");
scanf("%lf",&x);
do
{
}
while(sum==0 || sum>e);
printf("sum=%lf",sum);
system("PAUSE");
return 0;
}