Program - A number is member of Fibonacci sequence or not?

Not able to code a number is member of Fibonacci sequence or not. Show me the C++ code for this ?

@findaks0001 Coding Blocks IDE
this is the code which uses simple while loop
if you still have a dout feel free to ask and if clear mark it as solved and rate my experience

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.