Python Fibonacci series
Python program.
* Write a program to find Fibonacci series in simple way.
Program::
a, b=0,1 # assign a value
while a<100: # number upto 100
print(a)
a, b = b, a+b # swap a value
Program::
a, b=0,1 # assign a value
while a<100: # number upto 100
print(a)
a, b = b, a+b # swap a value
>> Output >>
Comments
Post a Comment