diff --git a/PHP_fibonacci.php b/PHP_fibonacci.php new file mode 100644 index 0000000..dd60f97 --- /dev/null +++ b/PHP_fibonacci.php @@ -0,0 +1,16 @@ + +Fibonacci series for first 100 terms: "; +echo "\n"; +echo $n1.' '.$n2.' '; +while ($num < 100 ) +{ + $n3 = $n2 + $n1; + echo $n3.' '; + $n1 = $n2; + $n2 = $n3; + $num = $num + 1; +?> \ No newline at end of file