Computer Science, asked by ishubagri, 11 months ago

write a program in python to print Fibonacci series first 20 element ....plz answer ​


mohit810275133: hii
mohit810275133: hello

Answers

Answered by Equestriadash
14

The following codes have been written using Python.

x = 0

y = 1

print(x)

print(y)

for i in range(1, 19):

   z = x + y

   print(z)

   x, y = y, z

A Fibonacci Series is a series where each element is the sum of the preceding two elements.

When we take this series, 0, 1, 1, 2, 3, 5, 8, 13, ..., it's evident that each element is the sum of the preceding two elements.

Answered by Anonymous
2

Answer:

Explanation:

x = 0

y = 1

print(x)

print(y)

for i in range(1, 19):

  z = x + y

  print(z)

  x, y = y, z

A Fibonacci Series is a series where each element is the sum of the preceding two elements.

When we take this series, 0, 1, 1, 2, 3, 5, 8, 13, ..., it's evident that each element is the sum of the preceding two elements

Similar questions