Fibonacci number

zhaozj2021-02-16  79

Print Fibonacci Corition

>>> a, b = 0, 1 >>> While B <10: ... Print B ... A, B = B, A B ... 112358 >>>

Return to the fiphonaccai number

>>> DEF FIB (N): ... result = [] ... a, b = 0, 1 ... while b >> FIB (100) [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] >>>

转载请注明原文地址:https://www.9cbs.com/read-13245.html

New Post(0)