Write a program to print Fibonacci series
<?php
$fibo=array(0,1);
$num=4;for($i=2;$i<=$num-1;$i++){$fibo[$i]=$fibo[$i-1]+$fibo[$i-2];}?>
No comments:
Post a Comment