Home > Back-end >  For help, which master can tell me what do I do it fills up the topic?
For help, which master can tell me what do I do it fills up the topic?

Time:09-25



CodePudding user response:

 # include & lt; Stdio. H> 
# include & lt; Math. H>

Double func (void);

Int main (void)
{
Printf (" % lf \ n ", func ());
return 0;
}


Double func (void)
{
Double sum=1.0, temp=1.0;
Int I=1, the TAB=1;

While (fabs (temp) & gt; 1-5) e {
Temp=TAB * 1.0/(2 * I + 1);
i++;
TAB=TAB * (1);
Sum=sum + temp;
}

Return the sum * 4;
}

For your reference ~
  • Related