求一直到某数的阶乘和
问题描述:
求一直到某数的阶乘和
#include
void wwjt();
long int fun(int n)
{
//
}
main()
{
int n;
long int result;
scanf("%d",&n);
result=fun(n);
printf("%ld\n",result);
wwjt();
}
void wwjt()
{
FILE *IN,*OUT;
int i;
int iIN;
long int iOUT;
IN=fopen("in.dat","r");
if(IN==NULL)
{
printf("Please Verify The Currernt Dir..It May Be Changed");
}
OUT=fopen("out.dat","w");
if(OUT==NULL)
{
printf("Please Verify The Current Dir..It May Be Changed");
}
for(i=0;i
答
我一直不知道什么是阶乘啊