Unexpected infinite while loop traversing when I am doing an operation with while loop
<p>look the below program. When compiled it, the loop is not terminating. That is not an expected behaviour. Anyone please explain this reason?</p>

<pre><code>#include&lt;iostream.h&gt;

int main()
{
    int nIntValue = 0;
    int nTempVal = 100;
    for( int nLoop = 1; nLoop &lt;= 25; nLoop++ )
    {
        nTempVal = nTempVal / nLoop;
    }
    // Print the value of nIntVal
    while( nIntVal == 0 )
    {
        nIntVal += nTempVal;
        cout&lt;&lt;nIntVal;
    }
    return 0;
}
</code></pre>
