0
Help me fix this problem.
//Fibonacci Series Output - 0,1,1,2,3,5,8,13 $n=5; $a=[0,1]; for($i=0; $i<=$n; $i++){ //Write your code here in only 1 line $a[] = $a[count($a) - 1] + $a[count($a) - 2]; } echo implode($a,','); ?>
1 Odpowiedź
0
Why you declare $n=5? You want iterate in for to 13.