Loop help C++ test : <p>i have a test and i get this question : <a href="https://prnt.sc/ip3z7n" rel="nofollow noreferrer">https://prnt.sc/ip3z7n</a> 
and this is my answer </p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
int main ()
{
    int grade,counter=0;
    for(int counter;counter&lt;10;counter++)
    {
        cout&lt;&lt;"Enter the grade: ";
        cin&gt;&gt;grade;
        if(grade&gt;=60)
        cout&lt;&lt;"Passed \n";
        else
        cout&lt;&lt;"Failed \n";

    }
    return 0;
}
</code></pre>
