As illustrated below and by other related solutions, this application will return the factorial of a number.