title: C program to print next five prime numbers
body: <p>I have a program that prints five prime numbers within a user input range(m,n).</p>
  
  <p>My problem is i want to print numbers greater than m. and print only next five numbers. I don't want to use upper limit.
  <br>
  How can I do it so?
  <br></p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;conio.h&gt;
  
  int main()
  {
   int m,n,i,j,k,flag;
  
  
   printf("\nEnter The Lower Limit: ");
   scanf("%d",&amp;m);
   printf("\nEnter The Upper Limit: ");
   scanf("%d",&amp;n);
  
   printf("\nPrime Numbers Between %d &amp; %d Are:\n",m,n);
   for(i=m ; i&lt;=n ; i++)
   {
    k=i;
    flag=1;
    for(j=2 ; (j&lt;=k/2)&amp;&amp;flag ; j++)
    {
     if(k%j==0)
     flag=0;
    }
  
    if(flag)
    printf("%3d \n",i);
   }
  
  
  }
  </code></pre>