Fibonacci Numbers

SSharp S# API

DropDown image DropDownHover image Collapse image Expand image CollapseAll image ExpandAll image Copy image CopyHover image

         function fib(n){

          if (n==1) return 1;

          else if (n==2) return 2;

          else return fib(n-1)+fib(n-2);

         }