fib1 = 0
fib2 = 1
n = 10
i = 0
while i < n:
fib_sum = fib1 + fib2
if (i>4):
print(fib_sum)
fib1 = fib2
fib2 = fib_sum
i = i + 1
Объяснение:
fib1 = 0
fib2 = 1
n = 10
i = 0
while i < n:
fib_sum = fib1 + fib2
if (i>4):
print(fib_sum)
fib1 = fib2
fib2 = fib_sum
i = i + 1
Объяснение: