int main() { int fac(int n); int i,n; scanf("%d",&n); for(i=1;i<=n;i++) printf("%d\n",fac(i)); return 0; } int fac(int n) { static int f=1; f=f*n; return(f); }