i have wrtten code but not working
How to check whether a given no is fibonacci or not
Hey
Pass on the code pls.
And explain your logic also
it’s the same code as when you have to print the fibonacci series with few modifications:
- Rather printing the elements of the series just make conditional checks inside the loop while(True):
A. If (element== number)
Print “yes” and break
B. If (element > number)
Print “No” and break
I am marking this doubt as resolved as you have not replied to this thread for 9 days.
In case, you still have some doubts regarding the same problem, you can reopen this doubt.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.