如题所述
#include <stdio.h>
int main()
{int i,t=0;
double s=0;
for(i=1;i<11;i++)
{t+=i;
s+=1.0/t;
}
printf("%lf\n",s);
return 0;