Fibonacci series
Program:-
n=int(input ("Enter the number: "))
print("Fibonacci number between 0 to ",n,": ")
a=0
b=1
t=0
for i in range(0,n):
print(a)
t=a+b
a=b
b=t
Output:-
Enter the number: 8
Fibonacci number between 0 to 8 :
0
1
1
2
3
5
8
13