Computer Science, asked by hemanthprabhu2003, 10 months ago

Fibonacci Series Help Me
n=int(input("Enter The Limit For Fibonacci Series)
firstno=0
secondno=1
for i in range(n):
temp=firstna
firstno=second
second=temp+second​

Answers

Answered by XDem
1

Answer:

correct code will be:

a = 0

b = 1

n = int(input('Number of element: '))

print(a)

print(b)

for i in range(1,n-1):

   c = a+b

   print(c)

   a,b = b,c

Similar questions