#includeint main(){int i,n;float s=0;printf("要加到第几项:");scanf("%d",&n);for(i=1;i<=n;i++) s+=(float)i/(i+i-1);printf("%f\n",s);return 0;}