main(){ float s;int a,b,n,j; s=1; scanf("%d",&n); for(a=1,a<=n;a++) {for(b=1,b<=a;b++) j*=b; s=s+1.0/j;} printf(".1f",s);}这样写对不对?有错帮忙改一下吧