Factorial

SSharp S# API

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

         function fac(n){

          if (n==1) return 1;

          else return n*fac(n-1);

         }