Untitled
unknown
plain_text
a year ago
229 B
4
Indexable
n=int(input("enter a no")) c=0 a=0 b=1 if n==0 or n==1: print("yes it is a fibonacci no") else: while c<n: c=a+b b=a a=c if c==n: print("yes") else: print ("No")
Editor is loading...
Leave a Comment