Computer Science, asked by chyr4800, 4 days ago

To print the following Fibonacci numbers using WHILE WEND statement" 1, 1, 2, 3, 5, 8 13" up to 10th term

Answers

Answered by RuwaisnZaid
0

Explanation:

x = int(input("Enter no of term::"))

a = 0

b = 1

print(0)

print(1)

i = 0

while (x-2)>i:

third = a+b

a = b

b = third

i=i+1

print(b)

THIS MIGHT BE THE ANSWER,

Similar questions