title: fibonacci series between two numbers
body: <pre><code>#include&lt;iostream&gt;
  
  int* fib(int);
  
  int main()
  {
      int count;
      std::cout&lt;&lt;"enter number upto which fibonacci series is to be printed"&lt;&lt;std::endl;
      std::cin&gt;&gt;count;
      int *p=new int[count];
      p=fib(count);
      int i;
      for(i&lt;0;i&lt;=count;i++)
          std::cout&lt;&lt;p[i]&lt;&lt;std::endl;
      return 0;
  }
  
  int* fib(int d)
  {
      int *ar=new int[d];
      int p=-1,q=1,r;
      int j;
      for(j=0;j&lt;=d;j++)
      {
          r=p+q;
          ar[j]=r;
          p=q;
          q=r;
      }
      return ar;
      delete ar;
  }
  </code></pre>
  
  <p>this program is printing fibonacci series with given count in the series.please share some idea that how can i convert this program to find fibonacci series between two  numbers.</p>