Description: You are given a positive integer N. Your task is to generate and print the Fibonacci sequence up to N terms. Display all the terms in order on a single line, separated by spaces.
Example 1
Input: n = 5
Output: 0 1 1 2 3
Explanation: Not Needed
Example 2
Input: 7
Output: 0 1 1 2 3 5 8
Explanation: Not Needed
Sign in to write, run, and submit your solution against the full test suite.