What is the Fibonacci Series?
The Fibonacci series is the sequence where each number is the sum of the previous two numbers of the sequence. The first two numbers of the Fibonacci series are 0 and 1 and are used to generate the Fibonacci series.
Check if a Given Number is Fibonacci Number in PHP
Given a number N, the task is to check whether the given number is a Fibonacci number or not.
Examples:
Input: 21
Output: Fibonacci Number
Input: 35
Output: Not a Fibonacci Number
Contact Us