What's wrong with my code.
<p>I have this code for returning percentage of grades less than 60. But it doesn't result in the desired percent. Someone help me figure out what's wrong. </p>

<pre><code>public float getPercentFailing(float[] grades) {

    float sum= 0;

    for (int i = 0; i &lt; .6; i++) {
        sum = sum + grades[i];
        return sum/100;
    }
    return 0;
}
</code></pre>
