Computer Science, asked by alokdariyawlodhi, 14 days ago

1write a simple python function to print n terms of Fibonacci series using iteration

Answers

Answered by sharmaaakansha871
0

Answer:

Python program to print fibonacci series using function

In this example, we have used the function as def fib(n)

We have initialized the n1 to 0 and n2 to 1.

if n == 1 then print(n1)

The for loop is used to iterate the values till the given number.

At last, it will print fibonacci series.

Similar questions