pastebin

Paste Search Dynamic
Recent pastes
Ans
  1. <?php
  2. $number = 5;
  3. $a = 0;
  4.   $b = 1;
  5.   $ans = 0;
  6.   echo $a . ", " . $b . ", ";
  7.   for ($i=0; $i < $number; $i++) {
  8.     $ans = $a + $b;
  9.     $a = $b;
  10.     $b = $ans;
  11.     echo $ans;
  12.     echo ", ";
  13.   }
  14.  ?>
Parsed in 0.008 seconds