Create a method to calculate the factorial of a number.
EasyProblem Statement
Create a method to calculate the factorial of a number.
Sample Input
5
Sample Output
120
Limits
Time: 2s · Memory: 256 MB
Create a method to calculate the factorial of a number.
5
120
Time: 2s · Memory: 256 MB