Fibbonacci flowchart problem

i did not understand what is the logic i applied as i know the complete fibonacci series that is 0,1,1,2,3 and so on every digit is the sum of previous two digit for that we have previous two numbers are always in the memory pls give me the logic for that

hello @dipeshgupta197

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.
if it is then print yes otherwise no.image

the flowchart u gave me u didnt define c but u use below pls clarify that sir

ignore that, c is of no use for this problem.

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.