Write a Go program to calculate the factorial of a number using a loop.
EasyProblem Statement
Write a Go program to calculate the factorial of a number using a loop.
Sample Input
A predefined integer n = 5.
Sample Output
120
Limits
Time: 2s · Memory: 256 MB