22.06.2016 Views

Loops_sushma

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

for loop<br />

It's preferred when you know how many iterations you want, either because<br />

you know the exact amount of iterations, or because you have a variable<br />

containing the amount.<br />

Syntax : for (initialization-statement ; condition; increment/decrement)<br />

{<br />

// code<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!