a=0
b=1
n=9999999999999999999999 # Number of terms in Fibonacci Series (sample value)
# An integer giving the maximum value a variable of type Py_ssize_t can take.
# It 's usually 2^31 - 1 on a 32-bit platform and 2^63 - 1 on a 64-bit platform.
print(a,b,end=" ")
while(n-2):
c=a+b
a=b
b=c
print("\n",c)
n=n-1
No comments:
Post a Comment