#include<stdio.h>
int main(void)
{
while(1)
intn,f=1,i;
printf("enternumber ");
scanf("%d",&n);
for(i=1;;i++)
f*=i;
if(i==n)
break;
}
printf("%d的阶乘是:%d",n,f);
return0;