Write an R program to calculate the Fibonacci sequence up to the 10th term using a loop.
MediumProblem Statement
Write an R program to calculate the Fibonacci sequence up to the 10th term using a loop.
Sample Input
None
Sample Output
[1] 0 1 1 2 3 5 8 13 21 34
Limits
Time: 2s · Memory: 256 MB