how to print fibonacci series in python using while loop.
Answers
Answered by
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
Physics,
15 days ago
Math,
15 days ago
Social Sciences,
15 days ago
Math,
1 month ago
Social Sciences,
1 month ago