title: Finding pairs in an array that are equal to an input value
body: <p>I have to find out if there is any pair of i,j such that <code>array[i]^2 + array[j]^2 == x^2</code>
  .
  If there are such pairs, I need to print all such <code>(i,j)</code>. Otherwise, print “There are no such pairs”. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main(){
  
   int size=10, i, x,j;
  
   int Array[size];
   printf("What is the value of x:");
   scanf("%d",&amp;x);
  
   for(i=0;i&lt;size;i++){
      printf("Enter array value :");
      scanf("%d",&amp;Array[i]);
   }
   for(i=0;i&lt;size;){
      for(j=i+1;j&lt;size;j++)
          if((Array[i]*Array[i])+(Array[j]*Array[j])==x*x)  //how do I complete this for loop?
  
   }
  
      return 0;
   }
  </code></pre>