title: the method will recurse infinitely
body: <p>Given the following method declaration: </p>
  
  <pre><code>public static int fact(int num) {
      int tmp = 1;
      for (int i = 1; i &lt;= num; i++) {
          tmp *= i;
      }
      return tmp;
  }
  </code></pre>
  
  <p>I want to write it again as a recursive method and then write a full program that take input from the user and find out fact (num).</p>
  
  <p>I wrote this one but couldn't make it infinite:</p>
  
  <pre><code>public static int fact(int num) {
      int t = 1;
      int i = 0;
      if(i &lt;= num) {
          t *= i;
      }
      return fact(t);
  }
  </code></pre>