title: c program to find pythagorean triples
body: <pre><code>int a,b,n;
  
  printf("Input Natural Number n (n&lt;2,100,000,000) : ");
  scanf("%d",&amp;n);
  
  for(a=1;a&lt;=100;a++)
      for(b=1;b&lt;=100;b++)
  
          if(a&lt;b &amp;&amp; a*a + b*b == n*n)
          {
              printf("(%d, %d, %d)\n",a,b,n);
          }
          /*else
          {
              printf("impossible \n");
          }
            */         
          return 0;
  </code></pre>
  
  <p>if I delete 'else' the program runs correctly. But I want to make another function which can check the number has pythagorean numbers or not by using 'else' paragraph. But when I put 'else' paragraph in that code, the result is dizzy.... plz help me!! </p>