Create a Go program to generate Fibonacci numbers up to a given limit using a loop.
MediumProblem Statement
Create a Go program to generate Fibonacci numbers up to a given limit using a loop.
Sample Input
An integer n = 10.
Sample Output
[0 1 1 2 3 5 8 13 21 34]
Limits
Time: 2s · Memory: 256 MB