Skip to content

Commit 9863745

Browse files
Create Fibonacci Series.py
1 parent 32a050f commit 9863745

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Fibonacci Series.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
t=int(input("Enter the Number of Terms : "))
2+
if t>2:
3+
first=0
4+
second=1
5+
print("\nFibonacci Sequence is : ")
6+
for i in range(2,t):
7+
ne=first+second
8+
print (ne , end = " ")
9+
first=second
10+
second=ne
11+
12+
else :
13+
print("Invalid Input")

0 commit comments

Comments
 (0)