approx Java : In this exercice we will calculate an approximation of (Pi)

Solution:
int limit=100;
double v=0
for(int i=0;i<limit;i++){
v+=(1-2*i%2)/(2*i+1);
}
v*=4;
approx Java : In this exercice we will calculate an approximation of (Pi)
Solution:
int limit=100;
double v=0
for(int i=0;i<limit;i++){
v+=(1-2*i%2)/(2*i+1);
}
v*=4;