Calculating the Factorial

This program calculates the factorial of a number.