C language factorial
In fact, this can only be counted as the factorial of 12, because the factorial of 13 is equal to 6227020800, which is greater than the quadratic power of 3 1, that is, it exceeds the maximum value (overflow) that can be expressed by int, so you can change int to double.

# include & ltstdio.h & gt

# include & ltstdlib.h & gt

Double f (integer n)

{

If (n = ||| n = =1) returns1;

Returns n * f (n-1);

}

int main()

{

int n,k,I;

Printf ("Please enter a number:");

scanf("%d ",& ampk);

for(I = 1; I<= k;; i++)

{printf ("The number %d is:", i);

scanf("%d ",& ampn);

printf("%d! =%f\n ",n,f(n));

}

}

I changed your writing a little. Take a look.