#In mathematics the Fibonacci numbers are the numbers in the following interger sequense:
#0,1,1,2,3,5,8,13,21,34,55....
#logic ==>
val3 = val1 + val2
val1 = val2
val2 = val3
i=i+1
print(c)
- def main():
val=input(" Enter the value for Fibonacci series of nth term := ")
fib(val) #function call
main() #main programme start from here
No comments:
Post a Comment