C language programming, factorial of 1-10