title: How to write in C code?
body: <p>Here I have some Perl code:</p>
  
  <pre><code>sub clustering {
      ($brapa,$gee) = @_;
      $g=0;
      while ($g&lt;$brapa) {
          if (($Y1XY[$g]-$Y2XY[$g])&lt;=0) { push(@Y1new,$g+$gee);}
          else { push(@Y2new,$g+$gee);}
          $g++;
      }
      $sizeY1new = $#Y1new+1;
      $sizeY2new = $#Y2new+1;
  }
  </code></pre>
  
  <p>The problem is that I have try to write it in C like this:</p>
  
  <pre><code>int clustering (int brapa, int gee){
      int g;
      g=0;
      while (g&lt;brapa) {
          if ((jarakY1-jarakY2)&lt;=0) { /*stuck at here*/ }
          else { }
      }
      return 0;
  }
  </code></pre>
  
  <p>How can I call data/results from jarakY1 and jarakY2?  Then, how do I write it perfectly in C?  Please help me.</p>