To print the following Fibonacci numbers using WHILE WEND statement" 1, 1, 2, 3, 5, 8 13" up to 10th term
Answers
Answered by
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
English,
2 days ago
Math,
2 days ago
Political Science,
2 days ago
Hindi,
4 days ago
History,
8 months ago