Fibonacci Sequence

Hi, please explain the answer and concept for making a flowchart on checking if a number is a part of the Fibonacci sequence

the idea is to keep generating fibonnaci number till the generated fibonacci number is < given number.
once this condition get false . check if that fibonnaci number is equal to given no or not.

check this.

ss