Computer Science, asked by prasadgoutam9061, 1 month ago

how to print fibonacci series in python using while loop.

Answers

Answered by silent9
1

Python program to print Fibonacci series without using recursion

Firstly,

the user will enter the first two numbers of the series and the number of terms to be printed from the user.

Then print the first two numbers.

The while loop is used to find the sum of the first two numbers and then the fibonacci series.

Now, print the fibonacci series till n-2 is greater than 0.

_____________________________

 \\  \\

Similar questions