Computer Science, asked by Elsa2112, 29 days ago

Write a Python program to print the first 10 terms of Fibonacci sequence.​

Answers

Answered by gannie7
0

Answer:

Step 1:Input the 'n' value until which the Fibonacci series has to be generated

Step 2:Initialize sum = 0, a = 0, b = 1 and count = 1

Step 3:while (count <= n)

Step 4:print sum

Step 5:Increment the count variable

Step 6:swap a and b

Step 7:sum = a + b

Step 8:while (count > n)

Step 9:End the algorithm

Step 10:Else

Step 11:Repeat from steps 4 to 7

Similar questions