Create a Go program to implement a goroutine that calculates the factorial of a number.
MediumProblem Statement
Create a Go program to implement a goroutine that calculates the factorial of a number.
Sample Input
An integer n = 5.
Sample Output
Factorial: 120
Limits
Time: 2s · Memory: 256 MB