Given a Number N check if it part of Fibonacci Series or Not?
What is the logic and flowchart for the given problem?
Given a Number N check if it part of Fibonacci Series or Not?
What is the logic and flowchart for the given problem?
Can you tell me the logic behind this formula and also an easier way to solve this question?
refer this article -> https://en.wikipedia.org/wiki/Fibonacci_number
easy method will be
generate all fibonnaici number less than of equal to given number .
and then see if that given number comes under this series or not
ok I got it, thank you very much!