Daily C Language Challenge No. 17: Fibonacci Sequence – Can You Output the First n Terms?
📌 Problem Description Write a program to output the first n terms of the Fibonacci sequence (starting from 1, in the form of 1, 1, 2, 3, 5…). Requirements:1. Support input of any positive integer n2. Optimize time complexity to O(n)Example: Input: n=5 → Output: 1 1 2 3 5 Input: n=1 → Output: 1 … Read more