SHARE
TWEET

Untitled

MagicWinnie Dec 8th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function fibonacci(a) {
  2.     b = 0;
  3.     c = 1;
  4.     i = 0;
  5.     while (i <= a){
  6.       console.log(b);
  7.        d = c + b;
  8.        b = c;
  9.        c = d;
  10.        i ++;
  11.     }
  12. }
  13. fibonacci(0);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top