Fibonacci Series

Easy

📝 Description

Print Fibonacci series up to n terms

Input Format

Number of terms n

Output Format

Fibonacci series separated by space

Constraints

1 ≤ n ≤ 20

🔍 Sample Input

5
            

✅ Sample Output

0 1 1 2 3
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run