#include<stdio.h> void main() { double s=0,a=1,x,y,i,j,n=1; while(a>=0.0005){ s+=a; x=1; y=3; a=a*n/(2*n+1); n++; } printf("%lf",2*s); }
觉得有用的话采纳一下哈