write a program that will display the Fibonacci series between 1 and 100 using for loop......... plz tell
Answers
Answered by
0
Answer:
num = int(input("enter number of digits you want in series "))
first = 0
second = 1
print("fibonacci series is:")
print(first, ",", second, end=", ")
for i in range(2, num):
c=first+second
print(c, end=", ")
first = second
second =c
==>>See the image
Attachments:
Similar questions