You are viewing a single comment's thread. Return to all comments →
def isFibo(n):
a=-1 b=1 c=0 temp=False for i in range(1,10000000): c=a+b if(c>n): break if(c==n): temp=True break a=b b=c if(temp==True): return "IsFibo" else: return "IsNotFibo"
Seems like cookies are disabled on this browser, please enable them to open this website
Is Fibo
You are viewing a single comment's thread. Return to all comments →
def isFibo(n):