//Title of this code
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void)
{
double N,D,P;
double s=0;
double n=0;
for(n=0; n <= pow(10,6); n++)
N=pow(-1,n);
D=2 * n +1;
P= N/D;
s+=P;
}
printf("El valor de pi es %lf",4*s);
return 0;
gcc