### Summary

In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n.

### Example

1 | 5! = 5 x 4 x 3 x 2 x 1 = 120 |

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

1 | package com.rohansakhale.fact; |