A simple program which calculates the factorial value of an integer.