title: Basic recursive method - factorial
body: <p>I am practicing recursion and I can't see why this method does not seem to work. 
  Any ideas?</p>
  
  <pre><code>    public void fact()
      {
          fact(5);
      }
  
      public int fact(int n)
      {
          if(n == 1){
              return 1;
          }
          return n * (fact(n-1));
      }
  }
  </code></pre>
  
  <p>Thanks</p>