📜  python fiboncci - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:28.115000             🧑  作者: Mango

代码示例1
n = int(input("say the nth term of the Fibonacci Series"))
a,c = 0,0
b = 1
for ele in range(0,n):
      print(a,end=' ')
      c = a + b
      a = b
      b = c