Write a Java application that displays factorials for a user input specified number. The factorial of a number, n, is the product of all of the positive integer values between 1 and n, and denoted by the ! symbol. For example, the factorial of 5, 5!, is calculated by multiplying 1 x 2 x 3 x 4 x 5 = 120. 10! is 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 = 3,628,800. The following link to a Wikipedia page has more information on factorial, http://en.wikipedia.org/wiki/Factorial.
The program is to use a for loop to repeat for the number input by the user and keep a running total of the factorial. Below are examples of the output from the program for numbers input: