title: checking for co-prime in C prgramming language
body: <pre><code>#include &lt;stdio.h&gt;
  
  int iscoprime(int num1, int num2);
  
  int main() {
  
      int x;
      x = iscoprime( 7, 8 );
      printf("%d",x);a
  }
  
  int iscoprime(int num1, int num2) {
  
      int r = 0;
      int gcd = 0;
      int i;
  
      for(i = 0; (i &lt; num1) || (i &lt; num2) ; ++i) {
  
          if( (num1 % i == 0) &amp;&amp; (num2 % i == 0)) {
  
              gcd = i;
          }
      }
  
      if ( gcd == 1 ) r = 1;
      return r;
  }
  </code></pre>
  
  <p>Error: this program has stopped..??? :(</p>