title: Floating point exception without division by zero
body: <p>I compiled ths code, but it gives floating point exception on execution</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int fibonacci(int n)
  {
    int a=0,b=1,c;
    while((n-1)&gt;0)
    {
      c=a+b;
      a=b;
      b=c;
      n--;
    }
    return c;
  }
  int main()
  {
    int t,a,b,c;
    scanf("%d",&amp;t);
    while(t--)
    {
      scanf("%d%d",&amp;a,&amp;b);
      while(a--)
      {
        b=fibonacci(b);
      }
      printf("%d",(b%c));
     }
    return 0;
   }
  </code></pre>
  
  <p>What should I do to resolve this problem?</p>