#include#includeint main(){float pi=0,t=1,n=1; int sign=1; for(;fabs(t)>=1e-6;sign=-sign) {t=sign/n; pi+=t; n+=2; } printf("%f\n",pi*=4); return 0;}