#3_20.py
#The program to give the certain integer according its index
#in the Fibonacci sequence
#by ggt
 
def x():
     al = 1
     ar = 0
     n = input("Enter the index of the integer in the Fibonacci sequece: ")
     for f in range(1,n+1):
         t = ar
         ar = al + ar
         al = t
     print 'The result is',ar

x()

相关文章:

  • 2021-11-21
  • 2021-09-27
  • 2022-12-23
  • 2021-12-23
  • 2021-06-01
猜你喜欢
  • 2021-12-23
  • 2021-08-02
  • 2021-06-07
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案