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













                >> Output >>







Comments

Popular posts from this blog

About RAM

Class and object in c++