Printing on Fibonacci Array Screen in Php.
Example:
<?php $x = 0; $y = 1; $tekrar = 15; for($i=0;$i<=$tekrar;$i++) { $z = $x + $y; echo $z."<br />"; $x=$y; $y=$z; } ?>
output:
1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597
Tagged In:
Php