c:
#include#include#includeint main(){ int n; double sum=0; printf("输入n:"); scanf("%d",&n); for(int i=1;i<=n;i++) sum+=1.0*i/(2*i-1); printf("sum=%f",sum); return 0;}
esacfb