Be the first user to complete this post

  • 0
Add to List
Beginner

327. Print First n numbers in Fibonacci Series

Objective: Write a program to print the first n numbers in the Fibonacci series.

Fibonacci number: First two Fibonacci numbers are defined as 0 and 1 and every number after the first two is the sum of the two preceding ones

Fibonacci Sequence- 0 1 1 2 3 5 8 13 21 34 55 89 ……..

Output:

First 10 elements in fibonacci series are:
0 1 1 2 3 5 8 13 21 34