C program to find factorial