what precautions should be taken while looping
<p>Please clarify me: 
what precautions I have to take during looping condition ex. in while loop or for loop</p>

<ol>
<li><p>minimize creation of new variable.</p></li>
<li><p>ensure that the loop has a definite exit condition.
3.loop should not be more then 10 lines.</p></li>
<li>do not check size() in loop conditon.</li>
</ol>
