单项选择题

要求以下程序的功能是计算

main()
int n;float s;
s=1.0;
for(n=10;n>1;n--)
s=s+1/n;
pfintf("%6.4f\n",s);
程序运行后输出结果错误,导致错误结果的程序行是