Summary
In mathematics, the factorial of a nonnegative integer n, denoted by n!, is the product of all positive integers less than or equal to n.
Example


The following code creates a GUI for calculating factorial numbers upto 170.
The user has to enter the number and click on Calculate which displays the answer on JLabel below the button.
The Class has been designed by extending JPanel which can be called from other classes and added onto the JFrame for displaying.
Screenshot
Code

