This function calculates the factorial of a number.Parameter: numberThe following formula calculates the factorial of 4. This translates to 4x3x2x1 and a report would display the result, 24.