csharp recursion formula for the factorial

Code Example - csharp recursion formula for the factorial

                
                        int factrec(int y){
  if(y==1)
    return 1
  else
    return y*factrec(y-1)
    }