fibonacci number interview qustion and solve the using rcursion

technical talkiess
0

 <?php

function fnnumber($num){

if($num <1){

    return;

    }

    return fnnumber($num - 1) + ($num - 1) ;

}


$vishal = 10;

echo fnnumber($vishal);

?> 

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)