Hi , we can use functions and pointers to find the factorial of a given number .
The logic of finding the factorial is
the following is the code for finding the factorial of a given number using functions.
printf("enter any no...");
printf("factorial of %d is %d ",n,x);
Please find attached the program for finding the factorial of number using pointers .