#include<stdio.h> main() { int n=2; double term=1.0,result=1.0,pi=1.0; do { pi=result*2; result=result*term; term=n*n/((double)(n-1)*(n+1)); n=n+2; printf("%f %f %f %d\n",pi,result,term,n); }while(n<=100); printf("%f",pi); getch(); }