title: error in for loop java
body: <p>How to eliminate this error?</p>
  
  <pre><code>int i, start, sum = 0, min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;
  for(i = 0, start = 0; i &lt; n, start &lt; n; i++, start++) {
      if(a[i]!=start) {
          sum+=a[i];
          if(sum&gt;max)
              max=sum;
           if(sum&lt;min) 
               min=sum;
      }
  }
  </code></pre>
  
  <p>The above code shows the following error in for loop. </p>
  
  <blockquote>
    <p>22: error: ';' expected  22: error: ')' expected  22: error: > expected 22: error: ';' expected  22: error: illegal start of expression  22: error: ';' expected</p>
  </blockquote>