C++ Recursion Segmentation Fault
<pre><code>#include &lt;iostream&gt;

using namespace std;

int findSumofOdds(int n);

int main()
{

  int n = 88;
  int x;

  x = findSumofOdds(n);
  cout &lt;&lt; x &lt;&lt; endl;


  return 0;
}

int findSumofOdds(int n)
{
  if (n != 1)
  {
    if( n % 2 == 0)
      n = (n - 1);

    return(findSumofOdds(n-1) + 1);
  }
  else
    return 1;
}
</code></pre>

<p>Why isn't this recursion working? It tries to run and then crashes. Please let me know. My teacher said that it would work but doesn't.</p>
