how to print Fibonacci series in python
Answers
Answered by
1
Answer:
❀ INPUT FORMAT: Input consists of an integer.
❀ OUTPUT FORMAT
❀SAMPLE INPUT: 7.
❀ SAMPLE OUTPUT: 0 1 1 2 3 5 8.
❀ PREREQUISITE KNOWLEDGE:while loop in Python and Recursion in Python.
※ Step 1) Input the 'n' value until which the Fibonacci series has to be generated.
※ Step 2) while (count <= n)
※ Step 3) Increment the count variable.
hope it will help u
mark me as a brainlist
Answered by
0
Answer:
very easy
Explanation:
y = 1
z = 0
for i in range (10):
x = z + y
print(x)
y = x + z
print (y)
z = y + x
print (z)
Similar questions