麻烦高手们,能把这个c++的程序用c的语言表示么?谢谢了
#include<stdio.h>const double min=0.0001;
float Item(double n)
{
double Mul;
Mul=1;
for(double i=1;i<=n;i++)
{
Mul=Mul*i;
}
return double(1/Mul);
}
main()
{
double e=1,i=1;
while(Item(i)>min)
{
e=e+Item(i);
cout<<Item(i)<<endl;
i++;
}
cout<<"e="<<e<<endl;
}