Implement a function to calculate the factorial of a number using a single loop.
HardProblem Statement
Implement a function to calculate the factorial of a number using a single loop.
Sample Input
A hardcoded number, e.g., 5.
Sample Output
Factorial of 5 is: 120
Limits
Time: 2s · Memory: 256 MB