没错嘛!在VC下验证通过……
#include"stdio.h"
int square(int x)
{
int y;
y=x*x;
return y;
}
long tat( int x)
{
long y=1;
int i;
for (i=1;i<=x;i++)
y=y*i;
printf("%ld",y);
return y;
}
main()
{
long b;
int a,c;
scanf("%d",&a);
c=square(a);
b=tat(c);
getch();
}
TC运行成功~~