title: How do I add another case when there is no prime number between a range(x != y)
body: <p><strong>Below is the C code for printing prime numbers between intervals x and y (inclusive of x and y)</strong>
  Suppose when x is 2, y is 2 then i have added a statement for it in Line 1
  Similarly, i want to present another statement like this but in this one x and y should not be equal for eg. x=8 , y=10. How should I do it?</p>
  
  <p><strong>Test Case</strong></p>
  
  <p><strong>Input 1</strong>
  2
  11</p>
  
  <p><strong>Output 1</strong>
  2 3 5 7 11</p>
  
  <p><strong>Input 2</strong>
  3
  -10</p>
  
  <p><strong>Output 2</strong>
  Negative integers cannot be prime</p>
  
  <p><strong>Input 3</strong>
  0
  1</p>
  
  <p><strong>Output 3</strong>
  There are no prime numbers in the range 0 to 1</p>
  
  <p><strong>Input 4</strong>
  1
  1</p>
  
  <p><strong>Output 4</strong>
  There are no prime numbers in the range 1 to 1</p>
  
  <p><strong>Input 5</strong>
  1
  11</p>
  
  <p><strong>Output 5</strong>
  2 3 5 7 11</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;math.h&gt;
  
  void main()
  {
      int num, x, y, i, count;
      scanf("%d\n%d", &amp;x, &amp;y);
      if (x&lt;0 || y&lt;0)
      {
          printf("\nNegative integers cannot be prime");
      }
      else if (x==y)
      {
          printf("\nThere are no prime numbers in the range %d to %d", x, y);  //Line1
      }
      else
      {
          for (num=x; num&lt;=y; num++)
          {
              count=0;
              for(i=2; i&lt;=num/2; i++)
              {
                  if (num%i==0)
                  {
                      count++;
                      break;
                  }
              }
              if (count==0 &amp;&amp; num!=1)
              printf("\n%d ", num);
          }
      }
  }
  </code></pre>