Write a c program to find the factorial of a number using function