Home > Back-end >  To solve the error
To solve the error

Time:06-09




#include
Int main ()
{
Int I, n, m, t;
Double s=1;
The scanf (" % d ", & amp; N);
for(i=1; I<=n; I++)
{
For (m=1, t=1; m<=I; M++)
T=t * m;
S=s + 1.0/t;
}
Printf (" %. 10 lf ", s);
return 0;
}



CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related