title: Check at least 2 numbers are perfect squares - c program
body: <p>Output:</p>
  
  <pre><code>1 2 9
  1 3 8
  1 4 7
  1 5 6
  2 3 7
  2 4 6
  3 4 5 
  </code></pre>
  
  <p>Expected:</p>
  
  <pre><code>1 2 9
  1 4 7
  </code></pre>
  
  <p>I only want to print those arrays which have at least 2 perfect squares in them. 
  In the above output, "1 2 9" 1 &amp; 9 are perfect squares, as are 1 and 4. The remaining results get skip or don't print. </p>
  
  <p>Below is my current code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  int main(void) {
  int num;
  scanf("%d",&amp;num);
  if(num&lt;200)
  for(int a = 1; a &lt; num; a++) {
      for(int b = a + 1; b &lt; num; b++) {
          for(int c = b + 1; c &lt; num; c++) {
              if(a + b + c == num) {
                  printf("%d %d %d\n", a, b, c);
              }
          }
      }
    }
  }
  </code></pre>