Home > Back-end >  The results appear this kind of 1. What is wrong with # INF00 bosses
The results appear this kind of 1. What is wrong with # INF00 bosses

Time:09-27

 
#include
Void main ()
{
Int I, n, jiecheng=1;
Double s=0.0;
Printf (" please input the value of n ");
The scanf (" % d ", & amp; N);
for(i=1; i<=n; I++)
{
Jiecheng=jiecheng * I;
S=s + (1.0/jiecheng);
}
Printf (" results for % lf ", s);
}

CodePudding user response:

50 factorial too

Int save any
  • Related