Write a Program to check whether a given number is exist in the Fibonacci series?
<?php
$num = 2;
if(($num==0)||($num==1))
{
echo "$num is exists in Fibonacci series";
}
else
{
$l=0;
$k=1;
$m=$l+$k;
while($m<$num)
{
$l=$k;
$k=$m;
$m=$l+$k;
}
if($m==$num)
echo "$num is exists in Fibonacci series";
else
echo "$num is not exists in Fibonacci series";
}
?>
Trucking is a career that can be rewarding and challenging. Those who enter the industry must be reliable, responsible and hardworking, as the job involves long hours, safety regulations, and potentially hazardous conditions. Despite the challenges, the trucking industry is an important part of the economy, and those who choose to pursue it may find it to be a rewarding and satisfying career. https://trucksbuddy.com/best-lift-kit-for-ford-maverick/
Please rotate your device
We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site