C language

this is my question: how to make function which must calculate and return the sum of "m" members of this type: 1/(1*3)-1/(3*5)+1/(5*7)-...+-1/((2*m-1)*(2*m+1)). argument of the function is value"m"..... please help
You may start from the function declaration:

double seria( unsigned m );

Last edited on
double Fun( unsigned m );
double sum=1/(1*3)-1/(3*5)+1/(5*7)-...+-1/((2*m-1)*(2*m+1));
return sum;

Topic archived. No new replies allowed.